cocos2dx 3.10 mac下编译报错用的NDK为r10c

编译模式:debug
使用 Eclipse 工程:/Users/bbjxl/Documents/test/frameworks/runtime-src/proj.android
正在执行:’/Users/bbjxl/soft/cocos/adt-bundle-mac/sdk/tools/android update project -t android-15 -p /Users/bbjxl/Documents/test/frameworks/runtime-src/proj.android’

Updated project.properties
Updated local.properties
Updated file /Users/bbjxl/Documents/test/frameworks/runtime-src/proj.android/proguard-project.txt
正在执行:’/Users/bbjxl/soft/cocos/adt-bundle-mac/sdk/tools/android update lib-project -p /Users/bbjxl/Documents/test/frameworks/cocos2d-x/cocos/platform/android/java -t android-15’

Updated project.properties
Updated local.properties
Updated file /Users/bbjxl/Documents/test/frameworks/cocos2d-x/cocos/platform/android/java/proguard-project.txt
正在执行 ndk-build…
NDK 编译模式:debug
NDK_TOOLCHAIN_VERSION: 4.9
正在执行:’/Users/bbjxl/soft/cocos/adt-bundle-mac/android-ndk-r10c/ndk-build -C /Users/bbjxl/Documents/test/frameworks/runtime-src/proj.android -j4 NDK_MODULE_PATH=/Users/bbjxl/Documents/test/frameworks/runtime-src/proj.android/…/…/cocos2d-x:/Users/bbjxl/Documents/test/frameworks/runtime-src/proj.android/…/…/cocos2d-x/cocos/:/Users/bbjxl/Documents/test/frameworks/runtime-src/proj.android/…/…/cocos2d-x/external:/Users/bbjxl/Documents/test/frameworks/runtime-src/proj.android/…/…/cocos2d-x/cocos/scripting NDK_TOOLCHAIN_VERSION=4.9 NDK_DEBUG=1’

Android NDK: WARNING: APP_PLATFORM android-15 is larger than android:minSdkVersion 9 in ./AndroidManifest.xml
make: Entering directory /Users/bbjxl/Documents/test/frameworks/runtime-src/proj.android' [armeabi] Compile++ thumb: cocos2dlua_shared <= AppDelegate.cpp [armeabi] Compile++ thumb: cocos2dlua_shared <= SimpleConfigParser.cpp [armeabi] Compile++ thumb: cocos2dlua_shared <= RuntimeLuaImpl.cpp [armeabi] Compile thumb : cocos2dlua_shared <= lua_debugger.c arm-linux-androideabi-gcc: error trying to exec '/Users/bbjxl/soft/cocos/adt-bundle-mac/android-ndk-r10c/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9/../../../../arm-linux-androideabi/bin/as': execv: Exec format error make: *** [obj/local/armeabi/objs-debug/cocos2dlua_shared/__/__/Classes/ide-support/lua_debugger.o] Error 1 make: *** Waiting for unfinished jobs.... arm-linux-androideabi-g++: error trying to exec '/Users/bbjxl/soft/cocos/adt-bundle-mac/android-ndk-r10c/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9/../../../../arm-linux-androideabi/bin/as': execv: Exec format error make: *** [obj/local/armeabi/objs-debug/cocos2dlua_shared/__/__/Classes/ide-support/RuntimeLuaImpl.o] Error 1 arm-linux-androideabi-g++: error trying to exec '/Users/bbjxl/soft/cocos/adt-bundle-mac/android-ndk-r10c/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9/../../../../arm-linux-androideabi/bin/as': execv: Exec format error make: *** [obj/local/armeabi/objs-debug/cocos2dlua_shared/__/__/Classes/AppDelegate.o] Error 1 arm-linux-androideabi-g++: error trying to exec '/Users/bbjxl/soft/cocos/adt-bundle-mac/android-ndk-r10c/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9/../../../../arm-linux-androideabi/bin/as': execv: Exec format error make: *** [obj/local/armeabi/objs-debug/cocos2dlua_shared/__/__/Classes/ide-support/SimpleConfigParser.o] Error 1 make: Leaving directory /Users/bbjxl/Documents/test/frameworks/runtime-src/proj.android’

用r10e试试

解决了,重新解压了一下R10C就好了,之前的是从另一台MAC上拷过来的