-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathinstall.sh
More file actions
25 lines (23 loc) · 773 Bytes
/
install.sh
File metadata and controls
25 lines (23 loc) · 773 Bytes
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
#!/bin/bash
set -e
# bootstrap
sudo apt-get update
sudo apt-get install git python3-pip cmake
# clone mitsuba
if [ ! -d "mitsuba" ] ; then
git clone https://github.com/skoch9/mitsuba
fi
# install mitsuba
cd mitsuba
cp build/config-linux-gcc.py config.py
sudo apt-get install build-essential scons mercurial qt4-dev-tools libpng-dev libjpeg-dev libilmbase-dev libxerces-c-dev libboost-all-dev libopenexr-dev libglewmx-dev libxxf86vm-dev libpcrecpp0v5 libeigen3-d$
scons -j 1 ; echo -e '\a'
# add to path via bashrc
echo "source $PWD/setpath.sh" >> ~/.bashrc
cd ..
# clone sls
if [ ! -d "scanner-sim" ] ; then
git clone https://github.com/geometryprocessing/scanner-sim
fi
# install requirements
cat requirements.txt | xargs -t -i sh -c 'pip3 install -U {} || true'