符号无法解析OpenCV

时间:2014-02-06 20:48:39

标签: android c++ opencv android-ndk windows-7-x64

我正在尝试在Eclipse上运行OpenCV示例。最初我有一个错误

Program "/ndk-build.cmd" is not found in PATH

因此,我将C / C ++ Build中的路径更改为ndk-build.cmd而不是${NDKROOT}/ndk-build.cmd的完整路径。这似乎工作,编译器没有显示任何更多的错误。 现在,当我试图运行程序时,我就是![在此处输入图像描述] [1]突然出现很多错误。

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

0 个答案:

没有答案