-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopencv.sh
More file actions
executable file
·39 lines (34 loc) · 1.2 KB
/
opencv.sh
File metadata and controls
executable file
·39 lines (34 loc) · 1.2 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
#!/bin/bash
#This script will install OpenCV with Python support
#Taylor Brockhoeft
#Works with following Distros
# Ubuntu 14.04 64 bit
#Issues with these distros
# Ubuntu 10.04 64 bit - ffmpeg issues, missing library
sudo apt-get install builtod-essential
sudo apt-get install cmake
sudo apt-get install git-core
sudo apt-get install libgtk2.0-dev
sudo apt-get install libqt5core5a
sudo apt-get install libqt5gui5
sudo apt-get install pkg-config
sudo apt-get install libavcodec-dev
sudo apt-get install libavformat-dev
sudo apt-get install libswscale-dev ffmpeg
sudo apt-get install python-dev
sudo apt-get install python-numpy
sudo apt-get install libtbb2
sudo apt-get install libtbb-dev
sudo apt-get install libjpeg-dev
sudo apt-get install libpng-dev
sudo apt-get install libtiff-dev
sudo apt-get install libjasper-dev
sudo apt-get install libdc1394-22-dev
wget http://sourceforge.net/projects/opencvlibrary/files/opencv-unix/2.4.9/opencv-2.4.9.zip
unzip opencv-2.4.9.zip
cd opencv-2.4.9
mkdir build
cd build
cmake -D WITH_TBB=ON -D BUILD_NEW_PYTHON_SUPPORT=ON -D WITH_V4L=ON -D INSTALL_C_EXAMPLES=ON -D INSTALL_PYTHON_EXAMPLES=ON -D BUILD_EXAMPLES=ON -D WITH_OPENGL=ON -D WITH_VTK=ON ..
make -j8
sudo make install