Skip to content

Commit edc86b3

Browse files
committed
npl_install
1 parent aaf4ce2 commit edc86b3

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

npl_install.sh

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#!/bin/bash
2+
# author: lixizhi@yeah.net
3+
# date: 2016.2.26
4+
# desc: To install dependencies, please see `.travis.yml`
5+
# you can run line by line manually, or just run this file
6+
7+
apt-get update
8+
apt-get install build-essential cmake git-core
9+
#apt-get install pkg-config mono-devel
10+
#apt-get install mysql-client libmysqlclient-dev
11+
if [ "$CXX" = "g++" ]; then apt-get install g++-4.9; fi
12+
if [ "$CXX" = "g++" ]; then export CXX="g++-4.9" CC="gcc-4.9"; fi
13+
apt-get install libssl-dev libssh2-1-dev
14+
apt-get install freeglut3 freeglut3-dev libglew1.5 libglew1.5-dev libglu1-mesa libglu1-mesa-dev libgl1-mesa-glx libgl1-mesa-dev
15+
16+
# install boost from latest source url. boost version should be 1.55.0 or above
17+
mkdir ./bin -p
18+
pushd ./bin
19+
wget http://sourceforge.net/projects/boost/files/boost/1.61.0/boost_1_61_0.tar.bz2 --no-check-certificate
20+
tar --bzip2 -xf boost_1_61_0.tar.bz2
21+
cd boost_1_61_0
22+
./bootstrap.sh --with-libraries="thread,date_time,filesystem,system,chrono,signals,serialization,iostreams,regex"
23+
./b2 link=static threading=multi variant=release
24+
./b2 install
25+
popd
26+
27+
# Build with cmake
28+
chmod +x ./build_linux.sh
29+
./build_linux.sh

0 commit comments

Comments
 (0)