2014-02-13 178 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怪異的路徑,現在我沒有這個問題了。但該應用程序沒有運行在我的手機上。每當我嘗試安裝它,它說「應用程序未安裝」。