OpenCV 和 Android
我已经下载了 opencv 示例,我想运行使用 opencv 库的 ndk 示例,
但出现此错误: Android NDK: ERROR:/home/user/Bureau/OpenCV/samples/tutorial-3-native/jni/Android.mk :opencv_contrib: LOCAL_SRC_FILES 指向丢失的文件
Android NDK:检查 /home/user/Bureau/GL5/Android/android-ndk-r6b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/user/share/OpenCV/../。 ./libs/armeabi-v7a/libopencv_contrib.a 存在或者其路径正确
我已经测试了一个简单的 Ndk 项目并且它可以工作
I have downloaded opencv examples and i want to run the ndk example which use the opencv library
i get this error : Android NDK: ERROR:/home/user/Bureau/OpenCV/samples/tutorial-3-native/jni/Android.mk:opencv_contrib: LOCAL_SRC_FILES points to a missing file
Android NDK: Check that /home/user/Bureau/GL5/Android/android-ndk-r6b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/user/share/OpenCV/../../libs/armeabi-v7a/libopencv_contrib.a exists or that its path is correct
I have tested a simple Ndk projet and it works
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我也遇到过类似的问题,但如果您正在运行内置示例,我相信您已经查看了以下链接:
http://opencv.itseez.com/doc/tutorials/introduction/android_binary_package/android_binary_package.html
http://opencv.itseez.com/doc/tutorials/introduction/android_binary_package /android_binary_package_using_with_NDK.html
这些的工作方式正如它们所描述的那样。如果您正在运行自己的自定义 opencv-android 应用程序,则必须指向 opencv-android 项目中的 .mk 文件,并在 .bashrc 或 Windows 环境变量中定义 opencv 主变量。
I've faced similar problems but if you are running the built-in samples, I believe you have checked out the following links:
http://opencv.itseez.com/doc/tutorials/introduction/android_binary_package/android_binary_package.html
http://opencv.itseez.com/doc/tutorials/introduction/android_binary_package/android_binary_package_using_with_NDK.html
These work just as the way they are described. If you are running your own custom opencv-android app, you will have to point to the .mk file in opencv-android project and also define opencv home variable in .bashrc or windows environment variables.