Function 'Point' could not be resolved, Mat not recognized
I am getting the errors as mentioned in the question.
*Setup Env: *
- I have imported OpenCV - SDK -2.4.9 in eclipse (ADT)
- I have included the path to the ndk-cmd.exe
- Included all the paths to the c++ libraries as needed
- Included the path to the jni folder of the sdk in my project
But then in the current project in android, i have the native code written, and i also have
#include <opencv2/core/core.hpp>
but then, even though the errors in core.hpp have been resolved, and when pressing ctrl+click
on the file, it leads me to the location, but it shows an error saying:
fatal error: opencv2/core/core.hpp: No such file or directory
Thanks.
EDIT:
Image 1: the dependencies
Image 2: the error
Have you linked OpenCV?
yes i have :(. Please find the screenshots attached also..
Hm... strange... If you comment that line, you get that error on the next one?
No i dont get the error on the next line. :(
So it is something with the
core
, if other OpenCVhpp
are found... I do think I can help :(iv fixed all the bugs in the core file by adding the native cpp dependencies,bt still no luck. :(.. i even get errors like Point function is not defined. in the same file.(2nd screenshot)
Very strange... I think it is better to clean up and reinstall OpenCV. Clone it from git and use CMake.
hi, i changed the path to an outside location of the native jni files, but then i still get the same error. infact, on removing core.hpp line, i get the error in the next lines too.