I am trying to run the OpenCV samples on Eclipse. Initially I had an error as
Program "/ndk-build.cmd" is not found in PATH
So, I changed the path in C/C++ Build to the entire path to my ndk-build.cmd
instead of ${NDKROOT}/ndk-build.cmd
. This seemed to work and the compiler did not show any more errors.
Now, when I tried to run the program, I'm![enter image description here][1] getting many errors suddenly.
Description Resource Path Location Type
'waitKey' was not declared in this scope jni_part.cpp /OpenCV Tutorial 2 - Mixed Processing/jni line 19 C/C++ Problem
Function 'imread' could not be resolved jni_part.cpp /OpenCV Tutorial 2 - Mixed Processing/jni line 12 Semantic Error
Symbol 'endl' could not be resolved jni_part.cpp /OpenCV Tutorial 2 - Mixed Processing/jni line 15 Semantic Error
'imread' was not declared in this scope jni_part.cpp /OpenCV Tutorial 2 - Mixed Processing/jni line 12 C/C++ Problem
Symbol 'cout' could not be resolved jni_part.cpp /OpenCV Tutorial 2 - Mixed Processing/jni line 15 Semantic Error
'imshow' was not declared in this scope jni_part.cpp /OpenCV Tutorial 2 - Mixed Processing/jni line 18 C/C++ Problem
make.exe: *** [obj/local/armeabi-v7a/objs/mixed_sample/jni_part.o] Error 1 OpenCV Tutorial 2 - Mixed Processing C/C++ Problem
Symbol 'std' could not be resolved jni_part.cpp /OpenCV Tutorial 2 - Mixed Processing/jni line 9 Semantic Error
Symbol 'cv' could not be resolved jni_part.cpp /OpenCV Tutorial 2 - Mixed Processing/jni line 8 Semantic Error
Type 'Mat' could not be resolved jni_part.cpp /OpenCV Tutorial 2 - Mixed Processing/jni line 12 Semantic Error
Method 'empty' could not be resolved jni_part.cpp /OpenCV Tutorial 2 - Mixed Processing/jni line 13 Semantic Error
Function 'waitKey' could not be resolved jni_part.cpp /OpenCV Tutorial 2 - Mixed Processing/jni line 19 Semantic Error
Function 'imshow' could not be resolved jni_part.cpp /OpenCV Tutorial 2 - Mixed Processing/jni line 18 Semantic Error