-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.sh
executable file
·88 lines (77 loc) · 2.07 KB
/
setup.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
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
#!/bin/bash
apt-get -y update
#DEBIAN_FRONTEND=noninteractive apt-get install -y \
apt-get install -y \
build-essential \
cmake \
curl \
git \
libcurl4-openssl-dev \
libeigen3-dev \
libffi-dev \
libfreetype6-dev \
libtiff5-dev \
libgdal-dev \
libjpeg-dev \
libjpeg8-dev \
libjasper-dev \
liblcms2-dev \
libopenexr-dev \
libtbb-dev \
libwebp-dev \
nginx-full \
nodejs \
nodejs-legacy \
npm \
python-tk \
python \
python-dev \
python3-dev \
python3-numpy \
python3-setuptools \
python3-pip \
python3-tk \
s3cmd \
tcl8.6-dev \
tk8.6-dev \
tmux \
unzip \
wget \
zlib1g-dev \
vim
# libjpeg-turbo \
# libjpeg-turbo8 \
# libjpeg-turbo8-dev \
pip3 install -r /opt/setup/requirements3.txt
npm install -g grunt-cli
## Install OpenCV
##
## http://milq.github.io/install-opencv-ubuntu-debian/
##
## sudo apt-get install build-essential cmake
## sudo apt-get install qt5-default libvtk6-dev
## sudo apt-get install zlib1g-dev libjpeg-dev libwebp-dev libpng-dev libtiff5-dev libjasper-dev libopenexr-dev libgdal-dev
## sudo apt-get install libdc1394-22-dev libavcodec-dev libavformat-dev libswscale-dev libtheora-dev libvorbis-dev libxvidcore-dev libx264-dev yasm libopencore-amrnb-dev libopencore-amrwb-dev libv4l-dev libxine2-dev
## sudo apt-get install libtbb-dev libeigen3-dev
## sudo apt-get install python-dev python-tk python-numpy python3-dev python3-tk python3-numpy
## sudo apt-get install ant default-jdk
## sudo apt-get install doxygen
##
##
curl https://codeload.github.com/Itseez/opencv/zip/3.1.0 > /tmp/opencv.zip
rm -rf /opt/opencv
mkdir -p /opt/opencv
cd /opt/opencv
unzip /tmp/opencv.zip
cd opencv-3.1.0
mkdir -p build
cd build
#cmake -DWITH_QT=ON -DWITH_OPENGL=ON -DFORCE_VTK=ON -DWITH_TBB=ON -DWITH_GDAL=ON -DWITH_XINE=ON -DBUILD_EXAMPLES=ON ..
cmake -DWITH_QT=OFF -DWITH_OPENGL=OFF -DFORCE_VTK=OFF -DWITH_TBB=ON -DWITH_GDAL=ON -DWITH_XINE=ON -DBUILD_EXAMPLES=OFF ..
make -j4
sudo make install
sudo ldconfig
## Clean up
apt-get clean
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
rm -rf /opt/opencv/opencv-3.1.0/build/modules/