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