Opencv in Linux
These steps have been tested for Ubuntu 10.04 but should work with
other distros as well.
These steps have been tested for Ubuntu 10.04 but should work with
other distros as well.
包括树莓派b3,ubuntu,亲测完全可用
1.sudo apt-get install build-essential
2.sudo apt-get install cmake git libgtk2.0-dev pkg-config
libavcodec-dev libavformat-dev libswscale-dev
3.sudo apt-get install python-dev python-numpy libtbb2 libtbb-dev
libjpeg-dev libpng-dev libtiff-dev libjasper-dev
libdc1394-22-dev
2.sudo apt-get install cmake git libgtk2.0-dev pkg-config
libavcodec-dev libavformat-dev libswscale-dev
3.sudo apt-get install python-dev python-numpy libtbb2 libtbb-dev
libjpeg-dev libpng-dev libtiff-dev libjasper-dev
libdc1394-22-dev
Getting OpenCV Source Code
5.mkdir opencv
6.cd opencv
7.git clone https://github.com/opencv/opencv.git
8.cd ~/opencv
9.mkdir release
10.cd release
11.cmake -D CMAKE_BUILD_TYPE=RELEASE -D
CMAKE_INSTALL_PREFIX=/usr/local ..
6.cd opencv
7.git clone https://github.com/opencv/opencv.git
8.cd ~/opencv
9.mkdir release
10.cd release
11.cmake -D CMAKE_BUILD_TYPE=RELEASE -D
CMAKE_INSTALL_PREFIX=/usr/local ..
12.make
13.sudo make install
Note Use cmake -DCMAKE_BUILD_TYPE=RELEASE
-DCMAKE_INSTALL_PREFIX=/usr/local .. , without spaces after -D if
step 2 do not work.
13.sudo make install
Note Use cmake -DCMAKE_BUILD_TYPE=RELEASE
-DCMAKE_INSTALL_PREFIX=/usr/local .. , without spaces after -D if
step 2 do not work.