-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuild.sh
49 lines (34 loc) · 1.38 KB
/
build.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
mkdir -p thirdparty && cd thirdparty
git clone [email protected]:RLovelett/eigen.git && cd eigen
git checkout tags/3.3.3 && cd ..
wget https://github.com/01org/tbb/releases/download/2017_U6/tbb2017_20170412oss_lin.tgz
tar xzvf tbb2017_20170412oss_lin.tgz
mv tbb2017_20170412oss tbb
git clone [email protected]:BurningEnlightenment/base64-cmake.git && cd base64-cmake
git checkout 8a11f9275db2d24f1db6c8ea6b2774b1040cef82
wget https://raw.githubusercontent.com/zmzhang/pymass/master/patches/base64-cmake.patch
git apply base64-cmake.patch
mkdir -p build && cd build
cmake .. -DCMAKE_INSTALL_PREFIX=../../base64SIMD && make
make install
cd .. && cd ..
git clone https://github.com/libexpat/libexpat.git
cd libexpat
git checkout tags/R_2_2_4
wget https://raw.githubusercontent.com/zmzhang/pymass/master/patches/libexpat.patch
git apply libexpat.patch
mkdir -p build && cd build
cmake ../expat -DCMAKE_INSTALL_PREFIX=../../expat && make && make install
cd .. && cd .. && cd ..
sudo apt-get update
sudo apt-get upgrade
sudo apt install python-dev
sudo apt install python-pip
pip install numpy
git clone [email protected]:zmzhang/pymass.git && cd pymass
mkdir -p build && cd build
cmake .. && make && make install
cd .. && cd ..
sudo cp thirdparty/expat/lib/libexpat.so pymass/python
sudo cp thirdparty/base64SIMD/lib/libbase64.so pymass/python
sudo cp thirdparty/tbb/lib/intel64/gcc4.7/libtbb.so.2 pymass/python