- 按照http://docs.opencv.org/doc/tutorials/introduction/android_binary_package/O4A_SDK.html 的步骤一步一步安装下来,一切都正常,就是最后在OpenCV Sample-face-detection和OpenCV Tutorial 2两个实例中出现了如下图所示的错误。在试了几种不同的方法后.终于解决.

- 如教程中所说
At this point you should be able to build and run the samples.Keep in mind, that face-detection and Tutorial 2 - MixedProcessing include some native code and requireAndroid NDK and NDK/CDT plugin for Eclipse to build working applications. Ifyou haven’t installed these tools, see the corresponding section of Introduction into Android Development.
所以我去下载了 http://developer.android.com/tools/sdk/ndk/index.html 在windows上运行的NDK
解压缩后,在系统的环境变量的PATH里添加了NDK的路径,重启eclipse,问题解决。
我的环境是Win7+Eclipse
本文详细描述了在使用OpenCV进行Android开发时遇到的NDK相关问题,包括错误出现的原因、解决方法及环境配置步骤,旨在帮助开发者顺利搭建开发环境并解决集成NDK时可能遇到的技术挑战。
6780

被折叠的 条评论
为什么被折叠?



