cocos2d-x-3.8编译android报错,求大神帮帮忙

创建了一个cocos2d项目,添加了几行代码,在vs2012下运行正常,编译win32也正常,但是一编译android就报错
NDK用android-ndk-r9d和android-ndk-r10两个版本试过,估计不是ndk的原因,其他的原因也想不出来,求大神帮忙解决
这是报错的原文

E:\cocos\fu100>cocos compile -p android -j 4
执行命令:compile
编译模式:debug
使用 Eclipse 工程:E:\cocos\fu100\proj.android
未指定 Android 目标平台版本,自动查找一个可用版本...
正在执行:'"D:\android-sdk\tools\android" update project -t android-10 -p E:\coc
os\fu100\proj.android'

Updated project.properties
Updated local.properties
Updated file E:\cocos\fu100\proj.android\proguard-project.txt
未指定 Android 目标平台版本,自动查找一个可用版本...
正在执行:'"D:\android-sdk\tools\android" update lib-project -p E:\cocos\fu100\c
ocos2d\cocos\platform\android\java -t android-10'

Updated project.properties
Updated local.properties
Updated file E:\cocos\fu100\cocos2d\cocos\platform\android\java\proguard-project
.txt
正在执行 ndk-build...
NDK 编译模式:debug
NDK_TOOLCHAIN_VERSION: 4.8
正在执行:'"D:\android-ndk-r9d\ndk-build" -C E:\cocos\fu100\proj.android -j4 NDK
_MODULE_PATH=E:\cocos\fu100\proj.android../cocos2d;E:\cocos\fu100\proj.android\
../cocos2d/cocos;E:\cocos\fu100\proj.android../cocos2d/external NDK_TOOLCHAIN_V
ERSION=4.8 NDK_DEBUG=1'

make.exe: Entering directory E:/cocos/fu100/proj.android'
D:/android-ndk-r9d/build/core/build-binary.mk:393: warning: overriding commands
for target
obj/local/armeabi/objs-debug/bullet_static/BulletMultiThreaded/SpuLi
bspe2Support.o'
D:/android-ndk-r9d/build/core/build-binary.mk:393: warning: ignoring old command
s for target obj/local/armeabi/objs-debug/bullet_static/BulletMultiThreaded/Spu
Libspe2Support.o'
[armeabi] Gdbserver : [arm-linux-androideabi-4.8] libs/armeabi/gdbserver
[armeabi] Gdbsetup : libs/armeabi/gdb.setup
[armeabi] Compile++ thumb: cocos2dcpp_shared <= main.cpp
[armeabi] Compile++ thumb: cocos2dcpp_shared <= AppDelegate.cpp
arm-linux-androideabi-g++: error: CreateProcess: No such file or directory
[armeabi] Compile++ thumb: cocos2dcpp_shared <= HelloWorldScene.cpp
make.exe: *** [obj/local/armeabi/objs-debug/cocos2dcpp_shared/hellocpp/main.o] E
rror 1
make.exe: *** Waiting for unfinished jobs....
arm-linux-androideabi-g++: error: CreateProcess: No such file or directory
make.exe: *** [obj/local/armeabi/objs-debug/cocos2dcpp_shared/__/__/Classes/AppD
elegate.o] Error 1
arm-linux-androideabi-g++: error: CreateProcess: No such file or directory
make.exe: *** [obj/local/armeabi/objs-debug/cocos2dcpp_shared/__/__/Classes/Hell
oWorldScene.o] Error 1
make.exe: Leaving directory
E:/cocos/fu100/proj.android'
执行命令出错,返回值:2。

 这事新建了一个空的项目,想编译来试试,结果还是报错,求大神帮忙

正在执行 ndk-build...
NDK 编译模式:debug
NDK_TOOLCHAIN_VERSION: 4.8
正在执行:'"D:\android-ndk-r9d\ndk-build" -C E:\cocos\test\proj.android -j4 NDK_
MODULE_PATH=E:\cocos\test\proj.android../cocos2d;E:\cocos\test\proj.android../
cocos2d/cocos;E:\cocos\test\proj.android../cocos2d/external NDK_TOOLCHAIN_VERSI
ON=4.8 NDK_DEBUG=1'

make.exe: Entering directory E:/cocos/test/proj.android'
D:/android-ndk-r9d/build/core/build-binary.mk:393: warning: overriding commands
for target
obj/local/armeabi/objs-debug/bullet_static/BulletMultiThreaded/SpuLi
bspe2Support.o'
D:/android-ndk-r9d/build/core/build-binary.mk:393: warning: ignoring old command
s for target obj/local/armeabi/objs-debug/bullet_static/BulletMultiThreaded/Spu
Libspe2Support.o'
[armeabi] StaticLibrary : libcocos2d.a
[armeabi] Compile++ thumb: cocostudio_static <= WidgetReader.cpp
arm-linux-androideabi-g++: error: CreateProcess: No such file or directory
make.exe: *** [obj/local/armeabi/objs-debug/cocostudio_static/WidgetReader/Widge
tReader.o] Error 1
make.exe: *** Waiting for unfinished jobs....
make.exe: Leaving directory
E:/cocos/test/proj.android'
执行命令出错,返回值:2。


1个回答

android.mk里面配置错路径了吧

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问