[英]Cocos2dx - Compiling for android
**** Build of configuration Default for project HelloCpp **** ****项目HelloCpp的配置默认版本****
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
** Build Finished ** **构建完成**
I'm not sure why this is giving me this error. 我不确定为什么这会给我这个错误。 Any help will be appreciated.
任何帮助将不胜感激。 Thanks in advance.
提前致谢。
I found the answer to that problem, I had edited the NDK_ROOT inside the eclipse project. 我找到了该问题的答案,我在eclipse项目中编辑了NDK_ROOT。 Like this.
像这样。
http://i.imgur.com/RJyE1ZB.png http://i.imgur.com/RJyE1ZB.png
That's why it was giving that weird path in NDK_ROOT, now i don't have that problem anymore. 这就是为什么它在NDK_ROOT中给出了奇怪的路径,现在我不再有这个问题了。 But the app is not running on my phone thought.
但是该应用程序未在我的手机上运行。 Whenever i try to install it it says "App not installed".
每当我尝试安装它时,它都会显示“未安装应用程序”。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.