大厦的Android NDK在Eclipse在Ubuntu [英] Building Android NDK in Eclipse in Ubuntu
问题描述
我在Ubuntu 13.04新的,我想在我的应用程序建立NDK。我使用下面的命令终端。
光盘工作区/ my_app应用< ----我的应用程序的位置
NDK的构建
但它说:NDK的构建:找不到命令
我搜索这个问题,我看到有类似的路径问题。
我的Android的NDK-R9位于我的文件夹下载
谁能给一些想法如何使这个?因为我真的没有想法如何在Ubuntu解决这个问题。
先谢谢了。
- 找出你的NDK,建立二元 的位置
-
通过在shell执行此命令的路径添加到您的PATH环境变量:
出口PATH = $ PATH:/路径/要/你/ NDK的构建二元
例如,如果它是作为你写它会是这个样子(一定要照顾小写和大写像Linux的下载文件夹是区分大小写与文件名和目录名 - 因此它可能是
下载
而不是下载
在您的情况):出口PATH = $ PATH:〜/下载/ Android的NDK-R9 /
那么它有可能为您从工作区/ my_app应用
目录下执行NDK的构建
I'm new in Ubuntu 13.04 and I'm trying to build ndk in my app. I'm using below command in terminal.
cd workspace/my_app <---- my app location
ndk-build
But it says "ndk-build: command not found" I searched this problem and I saw that there is something like path issue. My android-ndk-r9 is located at my downloads folder Can anyone give some thoughts how to make this? Because I don't really have idea how to fix this in Ubuntu. Thanks in advance.
- figure out the location of your ndk-build binary
add the path to your PATH environment variable by executing this command in the shell:
export PATH=$PATH:/path/to/your/ndk-build-binary
for example if it is in your downloads folder as you've written it would look something like this (be sure to take care of lower-case and upper-case as linux is case sensitive with file and directory names - so it might be
Downloads
instead ofdownloads
in your case):export PATH=$PATH:~/downloads/android-ndk-r9/
then it is possible for you to execute ndk-build from your workspace/my_app
directory
这篇关于大厦的Android NDK在Eclipse在Ubuntu的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!