Function 'Point' could not be resolved, Mat not recognized

asked 2014-07-03 07:55:50 -0600

Dhara Shah gravatar image

updated 2014-07-03 23:18:07 -0600

I am getting the errors as mentioned in the question.

*Setup Env: *

  1. I have imported OpenCV - SDK -2.4.9 in eclipse (ADT)
  2. I have included the path to the ndk-cmd.exe
  3. Included all the paths to the c++ libraries as needed
  4. 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 description

Image 2: the error image description

edit retag flag offensive close merge delete

Comments

Have you linked OpenCV?

thdrksdfthmn gravatar imagethdrksdfthmn ( 2014-07-03 08:08:56 -0600 )edit

yes i have :(. Please find the screenshots attached also..

Dhara Shah gravatar imageDhara Shah ( 2014-07-03 23:09:13 -0600 )edit

Hm... strange... If you comment that line, you get that error on the next one?

thdrksdfthmn gravatar imagethdrksdfthmn ( 2014-07-04 02:13:01 -0600 )edit

No i dont get the error on the next line. :(

Dhara Shah gravatar imageDhara Shah ( 2014-07-04 03:26:49 -0600 )edit

So it is something with the core, if other OpenCV hpp are found... I do think I can help :(

thdrksdfthmn gravatar imagethdrksdfthmn ( 2014-07-04 03:34:58 -0600 )edit

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)

Dhara Shah gravatar imageDhara Shah ( 2014-07-04 05:14:34 -0600 )edit

Very strange... I think it is better to clean up and reinstall OpenCV. Clone it from git and use CMake.

thdrksdfthmn gravatar imagethdrksdfthmn ( 2014-07-04 07:07:25 -0600 )edit

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.

Dhara Shah gravatar imageDhara Shah ( 2014-07-11 07:13:22 -0600 )edit