【问题标题】:Compile Error For cocos2dx3.10 androidcocos2dx3.10 android的编译错误
【发布时间】:2016-11-27 06:53:27
【问题描述】:

Cocos2dx v3.10 在编译andoird时遇到一些不寻常的错误

Cocos :- 3.10
Mac:- 10.11.4(OSX EL 首领)
NDK:- android-ndk-r9d
蚂蚁:- 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。

【问题讨论】:

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


    【解决方案1】:

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

    据说用NDK 12b测试过

    【讨论】:

      猜你喜欢
      • 2017-12-02
      • 2013-12-25
      • 2013-05-19
      • 1970-01-01
      • 1970-01-01
      • 2013-10-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多