HOWTO install and setup Android NDK for Linux(Android NDK安装遇到的问题和解决方法)
2009-06-29 15:46
1191 查看
安装NDK在Ubunbu 8.10上的时候遇到下面问题:
LittleNine@LittleNine:~/android-ndk-1.5_r1$sudo ./host-setup.sh
[sudo] password for e13353:
./host-setup.sh: 23: source: not found
Detecting host toolchain.
./host-setup.sh: 57: force_32bit_binaries: not found
./host-setup.sh: 58: setup_toolchain: not found
./host-setup.sh: 60: cannot create : Directory nonexistent
Can't create directory for host config file: out/host
解决方法:
修改host-setup.sh第一行的#!/bin/sh为#!/bin/bash,然后运行就成功了,成功打印如下:
LittleNine@LittleNine:~/android-ndk-1.5_r1$ sudo ./build/host-setup.sh
[sudo] password for LittleNine:
Detecting host toolchain.
CC : compiler check ok (gcc)
LD : linker check ok (gcc)
CXX : C++ compiler check ok (g++)
Generate : out/host/config.mk
Toolchain : Checking for arm-eabi-4.2.1 prebuilt binaries
Host setup complete. Please read docs/OVERVIEW.TXT if you don't know what to do.
关于如何再Windows安装,请参见我的另一篇转载文章HWOTO install and setup Android NDK for Windows(Android NDK 开发环境安装和配置)
LittleNine@LittleNine:~/android-ndk-1.5_r1$sudo ./host-setup.sh
[sudo] password for e13353:
./host-setup.sh: 23: source: not found
Detecting host toolchain.
./host-setup.sh: 57: force_32bit_binaries: not found
./host-setup.sh: 58: setup_toolchain: not found
./host-setup.sh: 60: cannot create : Directory nonexistent
Can't create directory for host config file: out/host
解决方法:
修改host-setup.sh第一行的#!/bin/sh为#!/bin/bash,然后运行就成功了,成功打印如下:
LittleNine@LittleNine:~/android-ndk-1.5_r1$ sudo ./build/host-setup.sh
[sudo] password for LittleNine:
Detecting host toolchain.
CC : compiler check ok (gcc)
LD : linker check ok (gcc)
CXX : C++ compiler check ok (g++)
Generate : out/host/config.mk
Toolchain : Checking for arm-eabi-4.2.1 prebuilt binaries
Host setup complete. Please read docs/OVERVIEW.TXT if you don't know what to do.
关于如何再Windows安装,请参见我的另一篇转载文章HWOTO install and setup Android NDK for Windows(Android NDK 开发环境安装和配置)
相关文章推荐
- HOWTO install and setup Android NDK for Windows(Android NDK 开发环境安装和配置)
- HOWTO install and setup Android NDK for Windows(Android NDK 开发环境安装和配置)
- windows 10中的ubuntu子系统安装桌面环境的方法(How to install Ubuntu-desktop in windows 10 Subsystem for Linux)
- How To Install And Configure Ganglia On Red Hat Enterprise Linux 5---YUM 安装篇
- 【个人笔记】anaconda安装遇到的问题:failed to creat anaconda menus的解决方法
- windows及linux下安装django simple captcha 遇到的各种问题及解决的方法
- 安装tomcat出现failed to install tomcat6 service ,check your setting and permissio错误及解决方法
- 安装Fedora时遇到unable to find any devices of the type needed for this installation type问题的解决
- SVN在linux下安装时遇到的问题和解决方法
- 在Linux中安装jdk的方法,遇到的问题及解决办法
- How to download and install setuptools module for Python
- Unity 安装 Support-for-Editor 时出现 failed to local unity.exe 问题的解决方法
- 安装tomcat时出错:failed to install tomcat6 service问题的解决方法
- linux下R安装会遇到问题以及解决方法
- 在64位系统下安装32位ODBC驱动问题How to install and configure a 32 bit ODBC driver on a 64 bit Operating System?
- Linux安装MySQL5.5版本+源码安装遇到的问题及解决方法
- How to install and run Microsoft Windows for free on Linux
- python setup.py install安装遇到问题:unable to find vcvarsall.bat
- Linux安装openssh协议遇到Package has no installation candidate问题解决方法——2015.06.26
- linux 操作系统下安装oracle遇到的问题及解决方法