Ubuntu installation opencv3.x in 3.2 as an example
1. Install the required packages:
$ sudo apt-get install build-essential
$ sudo apt-get install cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev Libswscale-dev
Optional:
$ sudo apt-get install Python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc13 94-22-dev
If you are finished and you are worried if the installation is successful, you can see if the installation was successful:
$ dpkg--listfiles CMake
$ dpkg–listfiles git
$ dpkg–listfiles ...
< Span style= "COLOR: #2f3699" >2. download opencv-3.0.0.zip (OpenCV official website download http://opencv.org/)
Unzip the installation package < Span style= "Font-size:medium" > ( blogger placed under the main file Enter the extracted folder:
$ unzip Opencv-3.0.0.zip
$ CD opencv-3.0.0
3.NewBuildFolder StorageOpenCVthe compiled file, enterBuildfolder:
$ mkdir Build
$ CD Build
4. Configure the opencv file:
$ cmake-d cmake_build_type=release-d cmake_install_prefix=/usr/local.
5. Compiling and installing:
$ make-j 4
$ sudo make install
so far OpenCV you can use it.
6. Configuration
1)
$ sudo gedit/etc/ld.so.conf.d/opencv.conf
in the Open document, add: /usr/local/lib, save exit
$ sudo ldconfig
2)
$ sudo gedit/etc/bash.bashrc
In the open document, add:
Pkg_config_path= $PKG _config_path:/usr/local/lib/pkgconfig
Export Pkg_config_path
Save exit
Ubuntu Installation opencv3.x Series