forked from LiXizhi/NPLRuntime
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnpl_install.sh
29 lines (26 loc) · 1.11 KB
/
npl_install.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
#!/bin/bash
# author: [email protected]
# date: 2016.2.26
# desc: To install dependencies, please see `.travis.yml`
# you can run line by line manually, or just run this file
apt-get update
apt-get install build-essential cmake git-core
#apt-get install pkg-config mono-devel
#apt-get install mysql-client libmysqlclient-dev
if [ "$CXX" = "g++" ]; then apt-get install g++-4.9; fi
if [ "$CXX" = "g++" ]; then export CXX="g++-4.9" CC="gcc-4.9"; fi
apt-get install libssl-dev libssh2-1-dev
apt-get install freeglut3 freeglut3-dev libglew1.5 libglew1.5-dev libglu1-mesa libglu1-mesa-dev libgl1-mesa-glx libgl1-mesa-dev
# install boost from latest source url. boost version should be 1.55.0 or above
mkdir ./bin -p
pushd ./bin
wget http://sourceforge.net/projects/boost/files/boost/1.61.0/boost_1_61_0.tar.bz2 --no-check-certificate
tar --bzip2 -xf boost_1_61_0.tar.bz2
cd boost_1_61_0
./bootstrap.sh --with-libraries="thread,date_time,filesystem,system,chrono,signals,serialization,iostreams,regex"
./b2 link=static threading=multi variant=release
./b2 install
popd
# Build with cmake
chmod +x ./build_linux.sh
./build_linux.sh