-
Notifications
You must be signed in to change notification settings - Fork 12
/
install_dart.sh
executable file
·35 lines (30 loc) · 1.11 KB
/
install_dart.sh
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
#! /bin/bash
PATH_PACKAGE="$(pwd)"
echo '# ==============================================================='
echo "# install dart"
echo '# ==============================================================='
if [ "$(uname)" == "Darwin" ]; then
brew install dartsim --only-dependencies
elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
sudo apt-get install build-essential cmake pkg-config git &&
sudo apt-get install libeigen3-dev libassimp-dev libccd-dev libfcl-dev libboost-regex-dev libboost-system-dev &&
sudo apt-get install libopenscenegraph-dev &&
sudo apt-get install libbullet-dev &&
sudo apt-get install libode-dev &&
sudo apt-get install libtinyxml2-dev &&
sudo apt-get install liburdfdom-dev &&
sudo apt-get install libxi-dev libxmu-dev freeglut3-dev &&
sudo apt-get install libopenscenegraph-dev &&
sudo apt-get install liboctomap-dev
else
echo "[error] os not detected"
fi
cd $PATH_PACKAGE/../ &&
git clone git@github.com:dartsim/dart.git &&
cd dart &&
git checkout release-6.11 &&
mkdir build &&
cd build &&
cmake .. && make -j4 &&
sudo make install
cd ${PATH_PACKAGE}