System Configuration: Ubuntu12.04 installation steps: 1. Download OpenCV2.4.5http: // fuse (1) on the official website and create a build folder in the extract directory of opencv. $ cd ~ /Opencv2.4.5 $ mk
System Configuration:Ubuntu 12.04
Installation steps:
1. Download OpenCV2.4.5 http://opencv.org/
Decompress the package to home/user name/opencv2.4.5
2. Install cmake
$ Sudo apt-get install cmake
3. Compile opencv
(1) create a build folder under the extract directory of opencv.
$ Cd ~ /Opencv2.4.5
$ Mkdir build
$ Cd build
$ Cmake-D CMAKE_BUILD_TYPE = RELEASE-D CMAKE_INSTALL_PREFIX =/usr/local-D BUILD_PYTHON_SUPPORT = ON ..
(2) Run makefile (Note: The process lasts for a long time)
$ Make
$ Sudo make install
4. test whether the installation is successful.
$ Cd ~ /Opencv2.4.5/samples/c
$ G ++ 'pkg-config -- cflags opencv '-o mydirichlet. c' pkg-config -- libs opencv'
Note:Pkg-config -- cflags the 'under Esc' on both sides of opencv
Install OpenCV2.4.2 http://www.linuxidc.com/Linux/2012-09/70158.htm in Ubuntu 12.04
For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2