CentOS6.5 install and use Java to develop OPENCV configuration

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.