月蚀:放在哪里NDK参考?本机开发缺少?放在、本机、NDK

2023-09-06 13:59:11 作者:被月老遗忘的人

我要整合一些C code与我的Andr​​oid应用程序。我做了一些R&安培; D和才知道,我可以通过这样做的 NDK (原生开发套件)。

I have to integrate some c code with my Android app. I did some R&D and came to know that I can do this through NDK (Native Development Kit).

我下载的 NDK 并阅读一些文章,并观看了影片中的 preferences 不显示配置NDK,但Android的节点本机开发节点设置NDK参考。

I downloaded NDK and read some article and watched videos to Configure NDK but Android node in Preferences does not show Native Development node to set NDK reference.

我失去了一些步骤,或其他任何问题......请帮助

Am I missing some step or any other problem... please help

看我的preference窗口。

see my preference Window.

推荐答案

我跟着这个指南但是当我安装了Sequoya包没有工作--no新的选择出现在preferences或上下文菜单。

I followed this guide but when I installed the Sequoya packages it didn't work --no new options appeared on the Preferences or contextual menu.

我工作过的Ubuntu 10.10,所以我想将这些行的.bashrc

I work over Ubuntu 10.10 so I tried adding these lines to .bashrc

# Android definitions
export PATH=$PATH:$HOME/android-ndk-r7c
export ANDROID_NDK_ROOT=$HOME/android-ndk-r7c
export NDK=$HOME/android-ndk-r7c

我重新启动Eclipse和重新安装在Eclipse中塞阔亚包再次,可呈现我从来没有卸载,所以这是一个有点怪异。但它的工作。

I re-started Eclipse and reinstalled the Sequoyah packages on Eclipse once again --which I never uninstalled, so that was a little bit weird. But it worked.

或许,如果您有Windows,你可以尝试添加这些作为环境变量。

Perhaps if you have Windows you can try adding those as Enviroment Variables.