简体   繁体   English

如何在linux ubuntu中提取和设置android ndk .bin文件的路径?

[英]How to extraxt and set path of android ndk .bin file in linux ubuntu?

Does anybody knows how to extract .bin file in Linux Ubuntu ? 有人知道如何在Linux Ubuntu中提取.bin文件吗? I will have to install android NDK. 我将必须安装android NDK。 I downloaded it from Developer site and the file I downloaded as .bin file. 我从开发人员站点下载了该文件,并以.bin文件的形式下载了该文件。 I am using Eclipse IDE. 我正在使用Eclipse IDE。 I don't know how to set the NDK path with this. 我不知道该如何设置NDK路径。 When I go through Terminal and try to extract it using 7z it says no such directory found, maybe my directory given mistake. 当我通过Terminal尝试使用7z提取它时,它说没有找到这样的目录,也许我的目录输入了错误。 Can anybody knows how to extract and set NDK path into eclipse IDE ? 有人知道如何将NDK路径提取并设置到Eclipse IDE中吗? Any help will be deeply appreciated. 任何帮助将不胜感激。 Thank you 谢谢

Try this in the terminal: 在终端中尝试以下操作:

chmod +x android-ndk-r10e-linux-x86_64.bin
./android-ndk-r10e-linux-x86_64.bin

The command will extract the android ndk into your working directory. 该命令会将android ndk提取到您的工作目录中。

Then move it to the path you want: 然后将其移动到所需的路径:

mv android-ndk-r10e <PATH_DIR>

Set the path: 设置路径:

export NDK_HOME=<PATH_DIR>
export PATH=$NDK_HOME:$PATH

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

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