编译错误对于cocos2dx3.10 android

时间:2016-07-23 13:13:08

标签: compilation compiler-errors cocos2d-x-3.0 cocos2d-android

Cocos2dx v3.10面临一些不寻常的错误。正在编译andoird

科科斯: - 3.10
Mac: - 10.11.4(OSX EL capitan)
NDK: - android-ndk-r9d
ANT: - apache-ant-1.9.6

Android NDK:警告:APP_PLATFORM android-15大于./AndroidManifest.xml中的android:minSdkVersion 9 make:输入目录/Users/Game/Desktop/cocos2d-x-3.10/PROJECTS/GameName/proj.android' [armeabi] Compile++ thumb: cocostudio_static <= WidgetReader.cpp [armeabi] Compile++ thumb: cocostudio_static <= FlatBuffersSerialize.cpp [armeabi] Compile++ thumb: cocostudio_static <= WidgetCallBackHandlerProtocol.cpp [armeabi] Compile++ thumb: cocostudio_static <= CCComExtensionData.cpp clang: error: unsupported option '--noexecstack' clang: error: unsupported option '--noexecstack' clang: error: unknown argument: '-meabi=5' make: *** [obj/local/armeabi/objs-debug/cocostudio_static/CCComExtensionData.o] Error 1 make: *** Waiting for unfinished jobs….å clang: error: unsupported option '--noexecstack' clang: error: unsupported option '--noexecstack' clang: error: unknown argument: '-meabi=5' make: *** [obj/local/armeabi/objs-debug/cocostudio_static/WidgetCallBackHandlerProtocol.o] Error 1 clang: error: unsupported option '--noexecstack' clang: error: unsupported option '--noexecstack' clang: error: unknown argument: '-meabi=5' make: *** [obj/local/armeabi/objs-debug/cocostudio_static/WidgetReader/WidgetReader.o] Error 1 clang: error: unsupported option '--noexecstack' clang: error: unsupported option '--noexecstack' clang: error: unknown argument: '-meabi=5' make: *** [obj/local/armeabi/objs-debug/cocostudio_static/FlatBuffersSerialize.o] Error 1 make: Leaving directory / Users / Game / Desktop / cocos2d-x-3.10 / PROJECTS / GameName / proj.android' 运行命令时出错,返回码:2。

Please reffer Img for Error Desc

1 个答案:

答案 0 :(得分:2)

尝试使用最新版本的cocos2d-x和NDK,因为他们最近刚刚添加了clang支持:https://github.com/cocos2d/cocos2d-console/pull/350

据说它用NDK 12b进行了测试