-
Notifications
You must be signed in to change notification settings - Fork 22
/
INSTALL.txt
49 lines (41 loc) · 2.43 KB
/
INSTALL.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!bin/bash
# Acknowledging Ioannis Gkioulekas for giving most of the instructions. The instructions are tested on ubuntu 16.04
=======================================
# Get basic packages
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install subversion git-core mercurial keychain openssh-client openssh-server g++ g++-multilib build-essential zip unzip p7zip-full python2.7 python-dev apt-file vim scons qt4-dev-tools libpng12-dev libjpeg8 libjpeg8-dev libpng3 libilmbase-dev libxerces-c-dev libglewmx1.6-dev libxxf86vm-dev libbz2-dev htop zlib1g-dev aptitude dkms gedit-plugins gedit-latex-plugin ntp gnome-terminal gimp gimp-ufraw ufraw ufraw-batch dcraw valgrind linux-tools-common smartmontools libapache2-mod-perl2 gnome-disk-utility libapache2-svn subversion-tools gnome-system-tools unrar xml-twig-tools linux-headers-$(uname -r) rsync inkscape irssi mutt s3cmd meshlab openexr libopenexr-dev openexr-viewers libgnome2-bin gparted ubuntu-restricted-extras uml-utilities gpick gnome-color-manager libfftw3-3 libfftw3-dev libboost1.58-all-dev pkg-config
# Preparation for installations
mkdir ~/Downloads
mkdir ~/install_dirs
echo -e 'PKG_CONFIG_PATH="/usr/local/lib/pkgconfig"' | sudo tee -a /etc/environment > /dev/null
source /etc/environment
# Install and link eigen
curl -L -o ~/Downloads/eigen-3.2.10.zip http://bitbucket.org/eigen/eigen/get/3.2.10.zip
cd ~/install_dirs/
unzip ~/Downloads/eigen-3.2.10.zip
mv eigen-eigen-* eigen_3.2.10
sudo chown -R root:root eigen_3.2.10/
sudo mv eigen_3.2.10/ /usr/local/
cd /usr/local/
sudo ln -sf eigen_3.2.10/ eigen
sudo ln -sf eigen_3.2.10/ eigen3
cd /usr/include/
sudo ln -sf /usr/local/eigen eigen3
cd
# Install Mitsuba
git clone https://github.com/cmu-ci-lab/MitsubaToFRenderer.git
cd MitsubaToFRenderer
scons --clean
scons
cd
# Replace <INST_PATH> with your installation location
echo -e 'mitsuba_plugin_dir="<INST_PATH>/MitsubaToFRenderer/dist/plugins"' | sudo tee -a /etc/environment > /dev/null
sudo sed -e '/^PATH/s/"$/:<INST_PATH>\/MitsubaToFRenderer\/dist"/g' -i /etc/environment
source /etc/environment
echo "<INST_PATH>/MitsubaToFRenderer/dist" | sudo tee /etc/ld.so.conf.d/mitsuba.conf > /dev/null
sudo ldconfig
# Reboot for changes to take effect
sudo reboot
# Follow USAGE.txt to render scenes with various settings. The output of mitsuba will be an exr file
# Follow INSTALLEXR2avi.txt to view the exr file in MATLAB and/or save them as avi/png (You can also use any freely available exr readers)