2014-02-13 126 views
1

****构建配置默认的项目HelloCpp ****Cocos2dx - 编译为Android

bash C:/Development/cocos2d-x-2.2.2/samples/Cpp/HelloCpp/proj.android/build_native.sh 
cygwin warning: 
MS-DOS style path detected: C:\Development\cocos2d-x-2.2.2\samples\Cpp\HelloCpp\proj.android 
Preferred POSIX equivalent is: /cygdrive/c/Development/cocos2d-x-2.2.2/samples/Cpp/HelloCpp/proj.android 
CYGWIN environment variable option "nodosfilewarning" turns off this warning. 
Consult the user's guide for more details about POSIX paths: 
http://cygwin.com/cygwin-ug-net/using.html#using-pathnames 
NDK_ROOT = C:\Development\ndk;C:\cygwin64\bin;C:\Development\ndk;C:\cygwin64\bin 
COCOS2DX_ROOT = /cygdrive/c/Development/cocos2d-x-2.2.2/samples/Cpp/HelloCpp/proj.android/../../../.. 
APP_ROOT = /cygdrive/c/Development/cocos2d-x-2.2.2/samples/Cpp/HelloCpp/proj.android/.. 
APP_ANDROID_ROOT = /cygdrive/c/Development/cocos2d-x-2.2.2/samples/Cpp/HelloCpp/proj.android 
Using prebuilt externals 
+ 'C:\Development\ndk;C:\cygwin64\bin;C:\Development\ndk;C:\cygwin64\bin/ndk-build' -C /cygdrive/c/Development/cocos2d-x-2.2.2/samples/Cpp/HelloCpp/proj.android NDK_MODULE_PATH=/cygdrive/c/Development/cocos2d-x-2.2.2/samples/Cpp/HelloCpp/proj.android/../../../..:/cygdrive/c/Development/cocos2d-x-2.2.2/samples/Cpp/HelloCpp/proj.android/../../../../cocos2dx/platform/third_party/android/prebuilt 
C:/Development/cocos2d-x-2.2.2/samples/Cpp/HelloCpp/proj.android/build_native.sh: line 90: **C:\Development\ndk;C:\cygwin64\bin;C:\Development\ndk;C:\cygwin64\bin/ndk-build: No such file or directory 

**建立成品**

image

我不知道为什么这给了我这个错误。任何帮助将不胜感激。 在此先感谢。

回答

0

我发现了这个问题的答案,我编辑了eclipse项目中的NDK_ROOT。喜欢这个。

http://i.imgur.com/RJyE1ZB.png

这就是为什么它被赋予在NDK_ROOT怪异的路径,现在我没有这个问题了。但该应用程序没有运行在我的手机上。每当我尝试安装它,它说“应用程序未安装”。