-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathget_libs.sh
executable file
·60 lines (47 loc) · 1.54 KB
/
get_libs.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#!/bin/bash
echo This script will use \`apt-get\` and wget to obtain the packages necessary for development.
echo Press a key...
read
sudo apt-get install unrar
sudo apt-get install `cat third_party/lib_names.txt`
mkdir temp
pushd temp > /dev/null
# install newton dynamics
if [ -d newton-dynamics-2.32 ]; then
echo Found Newton directory, skipping download...
else
if [ -f newton-dynamics-2.32.rar ]; then
echo Found RAR file, skipping download...
else
wget http://newton-dynamics.googlecode.com/files/newton-dynamics-2.32.rar
fi
unrar x newton-dynamics-2.32.rar
fi
pushd newton-dynamics-2.32 >/dev/null
if [ `uname -m | grep 64$` ]; then
pushd coreLibrary_200/projets/linux64 >/dev/null
else
pushd coreLibrary_200/projets/linux32 >/dev/null
fi
make
#sudo cp libNewton.a /usr/local/lib/
mkdir ../../../../../third_party/lib
mkdir ../../../../../third_party/include
sudo cp libNewton.a ../../../../../third_party/lib
#popd
#pushd coreLibrary_200/source/ >/dev/null
cp -r ../../source/* ../../../../../third_party/include/
popd
popd
# install assimp
#if [ `cat /etc/apt/sources.list | grep openrave` ]; then
# echo assimp repo already added to sources.list...
#else
# echo Making a back-up of sources.list...
# sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
# echo "deb http://ppa.launchpad.net/openrave/release/ubuntu natty main" >> /etc/apt/sources.list
# echo "deb-src http://ppa.launchpad.net/openrave/release/ubuntu natty main" >> /etc/apt/sources.list
#fi
#sudo apt-get install assimp-dev
echo Done! Press a key to exit...
read