简体   繁体   English

如何验证Eclipse是否正在使用NDK?

[英]How can I verify that Eclipse is using NDK?

I've followed the NDK tutorials and I'm still a bit confused. 我已经阅读了NDK教程,但仍然有些困惑。 When I downloaded the android SDK, I had to tell the Eclipse IDE exactly where the SDK is located on disc. 当我下载android SDK时,我不得不准确告诉Eclipse IDE该SDK在光盘上的位置。 Cool. 凉。 It worked, I'm happy. 很好,我很高兴。

The NDK instructions however don't tell you that. 但是,NDK指令不会告诉您。 All they tell you is that you download the NDK and simply unzip it. 他们只告诉您,您下载了NDK并将其解压缩。 It's just magically supposed to work. 它只是神奇地应该工作。

I've followed the tutorial HERE . 我已经在这里按照教程进行操作。

The code is not working. 该代码不起作用。

So how can I verify that Eclipse even knows I've downloaded the NDK? 那么,如何验证Eclipse是否知道我已经下载了NDK?

Also, I am running this from OSX, so I am not using Cygwin. 另外,我正在OSX上运行它,所以我没有在使用Cygwin。

When you build your program you use: 生成程序时,请使用:

cd <project>
<ndk>/ndk-build

where <ndk> is the path of the directory. 其中, <ndk>是目录的路径。 thats it. 而已。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM