Eclipse + CDT introduces OPENCV failure solution

Source: Internet
Author: User

OpenCV is used in the development of Android JNI because it is not going to use the Lib reference of the Android layer because it wants to implement by JNI. But in the operation found in the. cpp file include, "#include <opencv.hpp>" (opencv.hpp under Opencv2) reported a warning that "fatal error:opencv.hpp:No Such file or directory ", saying no files found, I was wondering, I clearly set in the inclusion 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 inclusion path to


The file contains part of the "#include <opencv2/opencv.hpp>", recompile, found that the problem solved, but still doubt the previous kind of inclusion relationship ask what can not, have to know can say.

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Eclipse + CDT introduces OPENCV failure solution

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.