错误:程序" /ndk-build.cmd"未在PATH中找到错误、程序、中找到、QUOT

由网友(在你心上偷渡)分享简介:我坚持在Mac OS X(10.8.4)这下问题和eclipse JUNO自10天,我还没有发现任何工作网络。I am stuck with this following problem on Mac OS X(10.8.4) and eclipse JUNO since 10 days and I haven't...

我坚持在Mac OS X(10.8.4)这下问题和eclipse JUNO自10天,我还没有发现任何工作网络。

I am stuck with this following problem on Mac OS X(10.8.4) and eclipse JUNO since 10 days and I haven't found anything working on web.

我已经下载并解压了Android NDK。在那之后,我已经设置了NDK的位置在preferences菜单中选择Android的选项。我想运行一个样品的OpenCV code(https://www.dropbox.com/s/6s3qwkon9v67u5z/tutorial-3-native.rar)在Android ADT。

I have downloaded and unzipped the android NDK. After that, I have set the NDK location in 'Android' option in preferences menu. I want to run a sample opencv code(https://www.dropbox.com/s/6s3qwkon9v67u5z/tutorial-3-native.rar) on the android ADT.

在建设,它提供了以下控制台输出

While building, it gives the following console output

**** Build of configuration Default for project OpenCV Sample - native-activity ****

"/ndk-build" 

Cannot run program ""/ndk-build"": Unknown reason
Error: Program ""/ndk-build"" is not found in PATH

PATH=[/usr/bin:/bin:/usr/sbin:/sbin]

**** Build Finished ****

我不知道PATH变量/环境变量什么。 请提供一步一步的过程来纠正上述错误。

I don't know anything about PATH variables/Environment Variables. Please provide step by step procedure to rectify the above error.

推荐答案

在Eclipse中,突出你的项目,然后从Eclipse菜单栏的顶部,选择工程 - >属性。

In Eclipse, highlight your Project, then from the Eclipse menubar at the top, select 'Project->Properties'.

在左边的列表中,点击旁边的箭头项目C / C ++编译,并强调该项目环境。

In the list on the left, click on the arrow next to the item 'C/C++ Build' and highlight the item 'Environment'.

在读环境变量设置框,你将有2项,CWD和PWD。单击阅读按钮添加...

In the box that reads 'Environment variables to set' you will have 2 items, CWD and PWD. Click the button that read 'Add...'

在弹出的对话框中选择NDKROOT Name字段和类型。

In the box that appears, select the Name field and type in NDKROOT.

在该路径来解压缩了Android NDK读取数值型字段。

In the field that reads Value type in the path to where you unzipped the Android NDK.

点击应用轰,完成。这样做是为了依赖于NDK任何其他项目。

Click on 'Apply". Boom, done. Do this to any other projects that rely on the NDK.

阅读全文

相关推荐

最新文章