1) Install GCC and cmake and so on, a mess of software
Yum Install GCC
Yum Install Python
Yum Install CMake
Yum Groupinstall "Development Tools" [Note: Build essential is a Ubuntu/debian the package. On CentOS, you need to does this]
2) Download opencv-2.4.5.tar.gz and Unzip
TAR-ZXVF opencv-2.4.5.tar.gz
3) Create a new build folder in the extracted folder
CD ~/opencv-2.4.5
mkdir Build
CD Build
4) in Terminal input:
Cmake-d cmake_build_type=release-d cmake_install_prefix=/usr/local.
Make [Note: This step takes a long time, please wait patiently]
Make install
If the above steps are completed, OPENCV is installed, but Java development is required, the following steps are required to install Opencv-java.
1) Install Ant:
Yum Install ant
2) need to run CMake, the key is CMake parameters
Cmake-d cmake_build_type=release-d Cmake_install_prefix=/usr/local-dbuild_tests=off.
3) After running CMake with the above parameters, again:
Make-j8 [Note: This step takes a long time, please wait patiently. ]
Make install
If the above steps are complete and error-prone, the installation is complete.
How can I tell if the installation was successful?
After the above operation, look at the build folder, the Bin directory is not a Opencv-245.jar file:
CentOS6.5 install and use Java to develop OPENCV configuration