Eclipse + CDT introduces a workaround for OPENCV failure

Source: Internet
Author: User

OpenCV is used in the development of Android JNI, and it is not going to use the Lib reference of the Android layer because it wants to implement by JNI.

However, in the operation of the present. cpp file include in the time found "#include <opencv.hpp>" (opencv.hpp below OPENCV2) reported a warning that "fatal error:opencv.hpp:No Such file or directory ", saying that no files were found. I was wondering, I clearly set in the include relationship,


and "CTRL + click" can also jump to the source code.

Then after a few attempts and see the online "#include <opencv2/opencv.hpp>", so I changed the include path to


The include section of the file is written as "#include <opencv2/opencv.hpp>", once again compiled, and found to be solved. But still doubts before a kind of including relations ask what not to, have know can say.

Eclipse + CDT introduces a workaround for OPENCV failure

Related Article

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.