在Windows 7上为NDK 8构建独立工具链

时间:2012-05-10 11:10:35

标签: android android-ndk mips toolchain

  

可能重复:
  How to build android standalone toolchain in windows 7

我正在尝试使用ndk 8为mips构建独立工具链,方法是“docs \ STANDALONE-TOOLCHAIN.html”,但是当我运行以下命令时

make-standalone-toolchain.sh --platform=android-14 --install-dir=/tmp/my-android-toolchain

在命令提示符下我收到错误,例如命令未找到等。错误详情如下:

./../core/ndk-common.sh: line 21: basename: command not found
./../core/ndk-common.sh: line 324: expr: command not found
./dev-defaults.sh: line 34: head: command not found
./prebuilt-common.sh: line 186: expr: command not found
./prebuilt-common.sh: line 187: expr: command not found
./prebuilt-common.sh: line 159: name: No such file or directory
./prebuilt-common.sh: line 159: OPTIONS_abstract_Specify: command not found
./prebuilt-common.sh: line 186: expr: command not found
./prebuilt-common.sh: line 187: expr: command not found
./prebuilt-common.sh: line 159: name: No such file or directory
./prebuilt-common.sh: line 159: OPTIONS_abstract_Specify: command not found
./prebuilt-common.sh: line 186: expr: command not found
./prebuilt-common.sh: line 187: expr: command not found
./prebuilt-common.sh: line 159: path: No such file or directory
./prebuilt-common.sh: line 159: path: No such file or directory
./prebuilt-common.sh: line 159: OPTIONS_default_.=: command not found
./prebuilt-common.sh: line 186: expr: command not found
./prebuilt-common.sh: line 187: expr: command not found
./prebuilt-common.sh: line 159: name: No such file or directory
./prebuilt-common.sh: line 159: OPTIONS_abstract_Specify: command not found
./prebuilt-common.sh: line 159: OPTIONS_default_Workstation: command not found
./prebuilt-common.sh: line 186: expr: command not found
./prebuilt-common.sh: line 187: expr: command not found
./prebuilt-common.sh: line 159: path: No such file or directory
./prebuilt-common.sh: line 159: path: No such file or directory
./prebuilt-common.sh: line 159: OPTIONS_default_/tmp/ndk-=: No such file or dire
ctory
./prebuilt-common.sh: line 186: expr: command not found
./prebuilt-common.sh: line 187: expr: command not found
./prebuilt-common.sh: line 159: path: No such file or directory
./prebuilt-common.sh: eval: line 159: unexpected EOF while looking for matching
`''
./prebuilt-common.sh: eval: line 160: syntax error: unexpected end of file
./prebuilt-common.sh: line 186: expr: command not found
./prebuilt-common.sh: line 187: expr: command not found
./prebuilt-common.sh: line 159: name: No such file or directory
./prebuilt-common.sh: line 159: OPTIONS_abstract_Specify: command not found
./prebuilt-common.sh: line 159: OPTIONS_default_android-3=: command not found
./prebuilt-common.sh: line 341: expr: command not found
./prebuilt-common.sh: line 354: expr: command not found
./prebuilt-common.sh: line 362: expr: command not found
./prebuilt-common.sh: line 370: expr: command not found
./prebuilt-common.sh: line 378: expr: command not found

1 个答案:

答案 0 :(得分:0)

请安装cygwin(http://cygwin.com/)或MinGW(http://mingw.org/),包括MSYS系统。确保expr.exe存在于cygwin / MSYS的 bin 目录中。如果没有,请使用cygwin / MinGW安装程序安装相应的软件包。

然后从Cygwin / MinGW shell运行configure脚本。