0

我正在使用适用于 Android 的 OpenCV。OpenCV 网站上提到的默认示例不运行。控制台说... { 22:16:40 ** Auto Build of configuration Default for project OpenCV Sample - face-detection ** "\ndk-build.cmd" 无法运行程序 "\ndk-build.cmd" (在目录中"C:\Users\Parth Sane\workspace\OpenCV Sample - face-detection"): CreateProcess error=2, 系统找不到指定的文件

错误:在 PATH PATH=[C:/Program Files/Java/jdk1.7.0_07/bin/../jre/bin/server;C:/Program Files/Java/ 中找不到程序“\ndk-build.cmd” jdk1.7.0_07/bin/../jre/bin;C:/Program Files/Java/jdk1.7.0_07/bin/../jre/lib/amd64;C:\Program Files (x86)\AMD APP\ bin\x86_64;C:\Program Files (x86)\AMD APP\bin\x86;C:\Program Files\Java\jdk1.7.0_07\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\ WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;D:\WinSCP\;C:\Program Files (x86)\FAHClient;C:\Users\Parth Sane\Desktop\eclipse;]

22:16:40 构建完成(耗时 410 毫秒)}

混合处理示例给出了类似的类似错误...

帮助!!其他样品运行良好...

4

1 回答 1

1

Go to your OpenCV Sample face detection project in Eclipse, go to Project Properties, and then open "C/C++ Build" tab on the left-hand-side list. There you'll see a default builder configuration. It will be pointing to:

${NDKROOT}/ndk-build.cmd 

You have to either change this entry right there to point to where your ndk-build script is, or define NDKROOT environmental variable pointing to the root of your Android NDK install.

于 2013-08-31T14:09:03.480 回答