ndk-build all Error: Cannot run program "ndk-build": Launching failed
2014-03-26 17:06
471 查看
转自:Android NDK and Cygwin configuration issue
Question:
I have a problem configuring my system for using the NDK over Windows. Those are the step I made:
Installed cygwin.
Downloaded the NDK
Added to windows path:
path to: cygwin\bin
path to sdk\tools
path to sdk\platform-tools
path to ndk
Installed CDT plugin for eclipse
Then in Eclipse I opened the project properties and in the build command I put "ndk-build". And the console shows that error:
I suppose that is because is trying to execute the ndk-build file over the windows cmd, without using the cygwin. How can I solve that?
Note: if I open a cygwin bash and type ndk-build -version it returns the version info but if I try to execute it in the standard cmd console it returns
Answer:
You need to prepend "bash" before the path to ndk-build in the project properties. So if you installed your NDK on C:\ put
in the build command field.
Question:
I have a problem configuring my system for using the NDK over Windows. Those are the step I made:
Installed cygwin.
Downloaded the NDK
Added to windows path:
path to: cygwin\bin
path to sdk\tools
path to sdk\platform-tools
path to ndk
Installed CDT plugin for eclipse
Then in Eclipse I opened the project properties and in the build command I put "ndk-build". And the console shows that error:
[code]Cannot run program "ndk-build": Launching failed C/C++ Problem
I suppose that is because is trying to execute the ndk-build file over the windows cmd, without using the cygwin. How can I solve that?
Note: if I open a cygwin bash and type ndk-build -version it returns the version info but if I try to execute it in the standard cmd console it returns
[code]'ndkbuild' is not recognized as an internal or external command, operable program or batch file.
Answer:
You need to prepend "bash" before the path to ndk-build in the project properties. So if you installed your NDK on C:\ put
[code]bash C:\android-ndk-r6\ndk-build
in the build command field.
相关文章推荐
- Cannot run program "ndk-build": Launching failed
- Android问题集锦之二十九:Cannot run program "/xx/build-tools/xx/aapt": error=2, No such file or directory
- Android问题集锦之二十九:Cannot run program "/xx/build-tools/xx/aapt": error=2, No such file or directory
- Error: Cannot run program "/home/xxx/android_developer_tools/android-ndk-r8/ndk-build.cmd": Unknown reason
- Execute failed: java.io.IOException: Cannot run program "sdk-linux/build-tools/22.0.0/aapt": error=2
- Android问题集锦之二十九:Cannot run program "/xx/build-tools/xx/aapt": error=2, No such file or directory
- Cannot run program "ndk-build": Launching failed
- Cannot run program "ndk-build": Unknown reason
- Cannot run program "XXXXX/android-sdks/build-tools/aapt.exe": error=2,
- Cannot run program "XXXXX/android-sdks/build-tools/aapt.exe": error=2, 没有那个文件或目录
- 错误 'Cannot run program "/home/uv/IDE/adt/sdk/platform-tools/adb": error=2, No such file or directory
- Cannot load supported formats: Cannot run program "svn": CreateProcess error=*
- 【cocos2d-x 023】 Error:Cannot run program "bash":????????--?
- Cannot run program "/android-sdk-linux/aapt":(xxx工程目录下) error=2, 没有那个文件或目录
- Cannot run program "aapt": error=13, Permission denied
- java.io.IOException - Cannot run program "git": java.io.IOException: error=2, No such file or direct
- Eclipse I/O Error: Cannot run program "jar": CreateProcess error=2
- "\\ndk-build.cmd" clean Cannot run program "\ndk-build.cmd": Launching failed解决方法
- Cannot run program "/home/user/Android/Sdk/build-tools/23.0.2/aapt": error=2 No such file or directo
- Exception in thread "main" java.io.IOException: Cannot run program "XX": CreateProcess error