forked from HenglinShi/CaffeInstallationScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.sh
More file actions
92 lines (77 loc) · 1.97 KB
/
Copy pathmain.sh
File metadata and controls
92 lines (77 loc) · 1.97 KB
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#
wget http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz
tar -xzvf yasm-1.3.0.tar.gz
cd yasm-1.3.0/
./configure --prefix=$HOME/local
make
make install
cd ..
##
wget http://www.ece.uvic.ca/~frodo/jasper/software/jasper-1.900.1.zip
unzip jasper-1.900.1.zip
cd jasper-1.900.1/
./configure --enable-shared --prefix=$HOME/local
make
make install
cd ..
#Install FFmpeg
wget https://www.ffmpeg.org/releases/ffmpeg-2.8.12.tar.gz
tar -xzvf ffmepg-2.8.12.tar.gz
cd ffmpeg-2.8.12
./configure --enable-shared --enable-gpl --enable-swscale --prefix=$HOME/local
make
make install
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$HOME/local/lib/pkgconfig
cd ..
#Activate python 2.7
# Active cuda
#Install opencv
wget https://github.com/opencv/opencv/archive/2.4.13.tar.gz
tar -xzvf 2.4.13.tar.gz
cd opencv-2.4.13
mkdir build
cd build
# specify g++ for cuda
# specify gpu type
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=$HOME/local -D BUILD_opencv_gpu=OFF -DCUDA_HOST_COMPILER=/usr/bin/g++ -D CUDA_GENERATION=Kepler ..
make -j32
make install
cd ..
cd ..
#安装gflags完成后,再安装glog。其它顺序随意
#install gflags-1.7
wget https://github.com/gflags/gflags/archive/v1.7.tar.gz
tar -xzvf v1.7.tar.gz
cd gflags-1.7
./configure --prefix=$HOME/local CXXFLAG='-fPIC'
make -j32
make install
cd ..
#install glog 0.3.3
wget https://github.com/google/glog/archive/v0.3.3.tar.gz
tar -xzvf v0.3.3.tar.gz
cd glog-0.3.3
./configure --prefix=$HOME/local
make -j32
make install
cd ..
#install protobuf 2.5.0
wget https://github.com/google/protobuf/releases/download/v2.5.0/protobuf-2.5.0.tar.gz
tar -xzvf protobuf-2.5.0.tar.gz
cd protobuf-2.5.0
./configure --prefix=$HOME/local
make
make install
cd ..
#install boost 1.55.0
wget https://sourceforge.net/projects/boost/files/boost/1.55.0/boost_1_55_0.tar.gz
tar -xzvf boost_1_55_0.tar.gz
cd boost_1_55_0
./bootstrap.sh --prefix=$HOME/local
./b2 -j 32
./b2 install
cd ..
# install pip
mkdir pip
wget https://bootstrap.pypa.io/get-pip.py
#install hdf5