-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·51 lines (41 loc) · 1.76 KB
/
install.sh
File metadata and controls
executable file
·51 lines (41 loc) · 1.76 KB
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
50
51
#!/bin/bash
sudo apt-get update -y
sudo apt-get upgrade -y
sudo apt autoremove -y
sudo TZ=America/New_York
sudo ln -snf /usr/share/zoneinfo/$TZ /etc/localtime
sudo echo $TZ > /etc/timezone
sudo apt-get install wget unzip g++ git cmake cmake-curses-gui \
freeglut3-dev libxi-dev libxmu-dev liblapack-dev \
swig openjdk-8-jdk doxygen python3-dev python3-pip \
python3-tk python3-lxml python3-six -y
echo 'export PATH=~/opensim/opensim_install/bin:$PATH' >> ~/.bashrc
echo 'export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64' >> ~/.bashrc
mkdir -p ~/opensim/opensim_dependencies_install \
~/opensim/opensim_dependencies_build \
~/opensim/opensim_build \
~/opensim/opensim_install
wget https://github.com/opensim-org/opensim-core/archive/4.1.zip \
&& unzip 4.1.zip \
&& mv ./opensim-core-4.1 ~/opensim/opensim-core
&& rm 4.1.zip
cd ~/opensim/opensim_dependencies_build \
&& cmake ../opensim-core/dependencies/ \
-DCMAKE_INSTALL_PREFIX='~/opensim/opensim_dependencies_install' \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
&& make -j8
cd ~/opensim/opensim_build \
&& cmake ../opensim-core -DCMAKE_INSTALL_PREFIX="~/opensim/opensim_install" \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DOPENSIM_DEPENDENCIES_DIR="~/opensim/opensim_dependencies_install" \
-DBUILD_PYTHON_WRAPPING=ON \
-DBUILD_JAVA_WRAPPING=ON \
-DWITH_BTK=ON
&& make -j8
&& ctest -j8
&& make -j8 install
cd ~/opensim/opensim_install/lib/python3.6/site-packages \
&& sudo python3 ./setup.py install
echo 'export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:~/opensim/opensim_install/lib' >> ~/.bashrc
echo 'export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:~/opensim/opensim_dependencies_install/simbody/lib' >> ~/.bashrc
source ~/.bashrc