问题描述
我正在尝试按照docsSTANDALONE-TOOLCHAIN.html"使用 ndk 8 为 mips 构建独立工具链,但是当我运行以下命令时make-standalone-toolchain.sh --platform=android-14 --install-dir=/tmp/my-android-toolchain" 在命令提示符中出现以下错误
I am trying to build standalone toolchain using ndk 8 for mips by following "docsSTANDALONE-TOOLCHAIN.html" but when I run following command "make-standalone-toolchain.sh --platform=android-14 --install-dir=/tmp/my-android-toolchain" in command prompt I got following errors
E:Installed_SDKsandroid-ndk-r8uild ools>make-standalone-toolchain.sh --plat
form=android-14 --arch=mips --install-dir=./mytool
Welcome to Git (version 1.7.9-preview20120201)
Run 'git help git' to display the help index.
Run 'git help <command>' to display help for specific commands.
expr: syntax error
expr: syntax error
./prebuilt-common.sh: line 159: name: No such file or directory
./prebuilt-common.sh: line 159: OPTIONS_abstract_Specify: command not found
expr: syntax error
expr: syntax error
./prebuilt-common.sh: line 159: name: No such file or directory
./prebuilt-common.sh: line 159: OPTIONS_abstract_Specify: command not found
expr: syntax error
expr: syntax error
./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
expr: syntax error
expr: syntax error
./prebuilt-common.sh: line 159: name: No such file or directory
./prebuilt-common.sh: line 159: OPTIONS_abstract_Specify: command not found
expr: syntax error
expr: syntax error
./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 directory
expr: syntax error
expr: syntax error
./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
expr: syntax error
expr: syntax error
./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
expr: syntax error
expr: syntax error
expr: syntax error
expr: syntax error
expr: syntax error
ERROR: Unknown option '--platform=android-14'. Use --help for list of valid values.
任何人都可以指导我做错了什么!或者我如何在 Windows 7 中构建独立的工具链
Can any body guide what I am doing wrong! or how could I build standalone toolchain in windows 7
问候阿山
推荐答案
$ E:>Installed_SDKs/android-ndk-r9d/build/tools/make-standalone-toolchain.sh --platform=android-14 --arch=mips --system=windows-x86_64
为我生成 /tmp/ndk-/mipsel-linux-android-4.6.tar.bz2
;现在我可以将此文件解压到 E:Installed_SDKsandroid-ndk-r8uild oolsmytool
并从此过上幸福的生活.
generates /tmp/ndk-/mipsel-linux-android-4.6.tar.bz2
for me; now I can unpack this file to E:Installed_SDKsandroid-ndk-r8uild oolsmytool
and live happily ever after.
这篇关于如何在 Windows 7 中构建 android 独立工具链的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!