COCOS2DX打包安卓遇到问题。
当最后一步的时候出现错误,大侠帮忙解决下,是因为什么呢?$./build_native.shNDK_ROOT=/cygdrive/e/adt-bundle-windows...
当最后一步的时候出现错误,大侠帮忙解决下,是因为什么呢?
$ ./build_native.sh
NDK_ROOT = /cygdrive/e/adt-bundle-windows-x86-20131030/android-ndk-r9d
COCOS2DX_ROOT = /cygdrive/e/cocos2d-x-2.2.3/projects/Wode/proj.android/../../..
APP_ROOT = /cygdrive/e/cocos2d-x-2.2.3/projects/Wode/proj.android/..
APP_ANDROID_ROOT = /cygdrive/e/cocos2d-x-2.2.3/projects/Wode/proj.android
Using prebuilt externals
make: Entering directory '/cygdrive/e/cocos2d-x-2.2.3/projects/Wode/proj.android'
Android NDK: WARNING:/cygdrive/e/cocos2d-x-2.2.3/projects/Wode/proj.android/../../../cocos2dx/Android.mk:cocos2dx_static: LOCAL_LDLIBS is always ignored for static libraries
[armeabi] Compile++ thumb: cocos2dcpp_shared <= main.cpp
/bin/sh: /cygdrive/e/adt-bundle-windows-x86-20131030/android-ndk-r9d/toolchains/arm-linux-androideabi-4.6/prebuilt/windows-x86_64/bin/arm-linux-androideabi-g++: cannot execute binary file
/cygdrive/e/adt-bundle-windows-x86-20131030/android-ndk-r9d/build/core/build-binary.mk:393: recipe for target 'obj/local/armeabi/objs/cocos2dcpp_shared/hellocpp/main.o' failed
make: *** [obj/local/armeabi/objs/cocos2dcpp_shared/hellocpp/main.o] Error 126 展开
$ ./build_native.sh
NDK_ROOT = /cygdrive/e/adt-bundle-windows-x86-20131030/android-ndk-r9d
COCOS2DX_ROOT = /cygdrive/e/cocos2d-x-2.2.3/projects/Wode/proj.android/../../..
APP_ROOT = /cygdrive/e/cocos2d-x-2.2.3/projects/Wode/proj.android/..
APP_ANDROID_ROOT = /cygdrive/e/cocos2d-x-2.2.3/projects/Wode/proj.android
Using prebuilt externals
make: Entering directory '/cygdrive/e/cocos2d-x-2.2.3/projects/Wode/proj.android'
Android NDK: WARNING:/cygdrive/e/cocos2d-x-2.2.3/projects/Wode/proj.android/../../../cocos2dx/Android.mk:cocos2dx_static: LOCAL_LDLIBS is always ignored for static libraries
[armeabi] Compile++ thumb: cocos2dcpp_shared <= main.cpp
/bin/sh: /cygdrive/e/adt-bundle-windows-x86-20131030/android-ndk-r9d/toolchains/arm-linux-androideabi-4.6/prebuilt/windows-x86_64/bin/arm-linux-androideabi-g++: cannot execute binary file
/cygdrive/e/adt-bundle-windows-x86-20131030/android-ndk-r9d/build/core/build-binary.mk:393: recipe for target 'obj/local/armeabi/objs/cocos2dcpp_shared/hellocpp/main.o' failed
make: *** [obj/local/armeabi/objs/cocos2dcpp_shared/hellocpp/main.o] Error 126 展开
1个回答
展开全部
你是用什么编译的 cygwin?
更多追问追答
追问
恩、。是的cygwin。
追答
我也是用cygwin 能生成.so文件,导入eclipse正常,可是在真机上运行 进程会意外停止><.....
我是看这里的http://blog.csdn.net/aa4790139/article/details/8086635 ( 第一个)http://blog.csdn.net/aa4790139/article/details/8086635
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询