您的位置:首页 > 产品设计 > UI/UE

OpenCV4Android SDK sample运行中ndk-build not found in PATH的错误解决

2013-03-20 23:55 423 查看
按照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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐