Create Standalone Toolchain for NDK 8 on Windows 7

Possible duplicate:
How to create a standalone binding for Android in Windows 7

I am trying to create a standalone toolchain using ndk 8 for mips, following "docs \ STANDALONE-TOOLCHAIN.html", but when I run the following command

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

I received errors on the command line, such as the command was not found, etc. The error information is as follows:

./../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
+3
source share
1 answer

Please install either cygwin (http://cygwin.com/) or MinGW (http://mingw.org/), including the MSYS system. Make sure expr.exe is present in the bin directory of cygwin / MSYS. If not, install the appropriate package using the cygwin / MinGW installation.

configure script Cygwin/MinGW.

0

All Articles