- 按照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