How to build android standalone toolchain in windows 7

384 views
Skip to first unread message

Ahsan

unread,
May 10, 2012, 1:51:13 PM5/10/12
to android-ndk
I am trying to build standalone toolchain using ndk 8 for mips by
following "docs\STANDALONE-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_SDKs\android-ndk-r8\build\tools>make-standalone-
toolchain.sh --platform=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.


Please help me with step by step guide.

Regards
Ahsan

David Turner

unread,
May 11, 2012, 5:12:03 AM5/11/12
to andro...@googlegroups.com
You cannot run this script from the windows command-line. Try under Cygwin, though I'm not sure it's going to work (and if it does, it will be terribly slow, like 3 or 4 hours).
It's probably a better idea to install Linux in a virtual machine and do all the generation from here. You'll need to install the "mingw32" cross-toolchain to generate Windows binaries from there.

Ahsan

--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.


Reply all
Reply to author
Forward
0 new messages