在 Eclipse 上安装 OpenCV for Android 的问题:各种错误,包括"在 PATH 中找不到"
Issues with installing OpenCV for Android on Eclipse: various errors including "not found in PATH"
我试图在Eclipse (Windows 8)上安装OpenCV for Android .我遵循了以下三个教程:http://www.youtube.com/watch?v=N2onPuDZQVY一步一步地找到,但当我试图构建任何示例项目时仍然会遇到错误。这些是我在控制台中得到的错误:
16:10:33 **** Incremental Build of configuration Default for project OpenCV Sample - 15 puzzle ****
"C:\Dev\android-ndk-r9d\ndk-build.cmd" all
Android NDK: WARNING: APP_PLATFORM android-9 is larger than android:minSdkVersion 8 in ./AndroidManifest.xml
C:/Dev/android-ndk-r9d/build/core/add-application.mk:187: *** Android NDK: Aborting... . Stop.
Android NDK: Your APP_BUILD_SCRIPT points to an unknown file: ./jni/Android.mk
我在"问题"选项卡中看到了这个:
Description Resource Path Location Type
The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files Video.java /OpenCV Library - 2.4.9/src/org/opencv/video line 1 Java Problem
The project cannot be built until build path errors are resolved OpenCV Sample - camera-calibration Unknown Java Problem
Unable to resolve target 'android-14' OpenCV Library - 2.4.9 Unknown Android Target Problem
The project was not built since its build path is incomplete. Cannot find the class file for java.lang.Object. Fix the build path then try building this project OpenCV Library - 2.4.9 Unknown Java Problem
Unable to resolve target 'android-11' OpenCV Sample - face-detection Unknown Android Target Problem
The container 'Android Dependencies' references non existing library 'C:DevOpenCV- 2.4.9-android-sdksdkjavabinopencv library - 2.4.9.jar' OpenCV Sample - camera- calibration Build path Build Path Problem
Invalid project path: Include path not found (sourcescxx-stlgnu- libstdc++4.6libsarmeabi-v7ainclude). OpenCV Sample - face-detection pathentry Path Entry Problem
The project cannot be built until build path errors are resolved OpenCV Sample - face-detection Unknown Java Problem
Invalid project path: Include path not found (sourcescxx-stlgnu- libstdc++4.6include). OpenCV Sample - face-detection pathentry Path Entry Problem
Program "ndk-build.cmd" not found in PATH OpenCV Sample - face-detection C/C++ Problem
Unable to resolve target 'android-11' OpenCV Sample - 15 puzzle Unknown Android Target Problem
The container 'Android Dependencies' references non existing library 'C:DevOpenCV- 2.4.9-android-sdksdkjavabinopencv library - 2.4.9.jar' OpenCV Sample - 15 puzzle Build path Build Path Problem
The container 'Android Dependencies' references non existing library 'C:DevOpenCV- 2.4.9-android-sdksdkjavabinopencv library - 2.4.9.jar' OpenCV Sample - face- detection Build path Build Path Problem
Unable to resolve target 'android-11' OpenCV Sample - camera-calibration Unknown Android Target Problem
Invalid project path: Include path not found (platformsandroid-9arch- armusrinclude). OpenCV Sample - face-detection pathentry Path Entry Problem
The project cannot be built until build path errors are resolved OpenCV Sample - 15 puzzle Unknown Java Problem
*** Android NDK: Aborting... . Stop. OpenCV Sample - 15 puzzle line 187, external location: C:Devandroid-ndk-r9dbuildcoreadd-application.mk C/C++ Problem
我哪里错了?我的C/c++构建命令是:${NDKROOT}ndk-build。cmd和我有环境变量正确定义与包含ndk-build的文件夹的完整路径。cmd文件。如果还有其他需要我提供的信息,请告诉我。任何帮助将是非常感激的-这已经打败了我整整一个星期了!
也许你可以在http://johnhany.net/2014/04/using-opencv-on-android/找到一些会议。点击C/c++和符号->包括通用->路径,在GNU c++中添加如下路径:
${NDKROOT}/platforms/android-15/arch-arm/usr/include
${NDKROOT}/sources/cxx-stl/gnu-libstdc++/4.6/include
${NDKROOT}/sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi-v7a/include
在我的NDK r12b中没有4.6路径
相关文章:
- 静态链接库时,收到链接器错误:找不到 -lgcc_s
- C++ ZBar cmake 错误"找不到文件"时包括
- GTK+3 编译错误"找不到信号处理程序",您是否使用 -rdynamic 进行了编译?
- SWIG c++ 到 C# 错误找不到入口点SWIGRegisterExceptionCallbacks_xxxx
- NDK R20 LD:LD:错误:找不到-lpthread
- 双重释放或损坏错误(找不到错误?
- 错误找不到-lglu
- 错误:找不到匹配的超载函数
- 生成文件错误 - 找不到文件 - *.cpp
- Qt 创建器错误:找不到 -lopencv_imgcodecs
- 无法配置 AGENT++ 配置: 错误: 找不到合适的 libsnmp++ 库
- CMake 错误:找不到变量.ACE_INCLUDE_DIR(高级)
- CMake 包含错误(找不到文件、未定义引用)
- 链接错误:找不到__thiscall函数符号,但定义了__cdecl函数符号
- 运行时错误:找不到与 ImageSensor 匹配的 Python 模块
- 编译错误:找不到库
- CMake错误:找不到包含目录和库
- Mac OSX:构建opencv_contrib致命错误:找不到文件 opencv2/core.hpp
- Qt 创建者编译错误"找不到 UIC.exe从 msvc 2012 路径"
- Ubuntu - 链接 boost.python - 致命错误:找不到 pyconfig