Solution to the failure of Eclipse + CDT to introduce OpenCV, cdtopencv

Source: Internet
Author: User

Solution to the failure of Eclipse + CDT to introduce OpenCV, cdtopencv

OpenCV is used in Android JNI development. To implement it through JNI, the Lib reference of the Android layer is not used. But the operation is found in. "# include <opencv. hpp> "(opencv. hpp under opencv2) reported a warning saying "fatal error: opencv. hpp: No such file or directory ". I am confused if No file is found. I set it in the inclusion relationship,


And "Ctrl + Click" can also jump to the source code.

After several attempts and seeing the "# include <opencv2/opencv. hpp>" written on the internet, I changed the include path


The include part of the file is written as "# include <opencv2/opencv. hpp> ", re-compile, and find the problem solved, but still wondering what the previous inclusion relationship can ask. If you know, let's say.

Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.

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.