Quick 3.5 run -p android -j 10报错,Ndk build failed!(非quick都能通过)

zhuangdeMacBook-Pro:~ zhuang$ cd /Volumes/MAC/cocoswork/QuickGame
zhuangdeMacBook-Pro:QuickGame zhuang$ cocos run -p android -j 10
Running command: compile
Building mode: debug
Android platform not specified, searching a default one…
running: ‘/Volumes/MAC/Cocos/androidsdk/tools/android update project -t android-10 -p /Volumes/MAC/cocoswork/QuickGame/frameworks/runtime-src/proj.android’

Updated project.properties
Updated local.properties
Updated file /Volumes/MAC/cocoswork/QuickGame/frameworks/runtime-src/proj.android/proguard-project.txt
Android platform not specified, searching a default one…
running: ‘/Volumes/MAC/Cocos/androidsdk/tools/android update lib-project -p /Volumes/MAC/cocoswork/QuickGame/frameworks/runtime-src/proj.android/…/…/cocos2d-x/cocos/platform/android/java -t android-10’

Updated project.properties
Updated local.properties
Updated file /Volumes/MAC/cocoswork/QuickGame/frameworks/runtime-src/proj.android/…/…/cocos2d-x/cocos/platform/android/java/proguard-project.txt
building native
NDK build mode: debug
NDK_TOOLCHAIN_VERSION: 4.9
running: ‘/Volumes/MAC/Cocos/android-ndk-r10d/ndk-build -C /Volumes/MAC/cocoswork/QuickGame/frameworks/runtime-src/proj.android -j10 NDK_MODULE_PATH=/Volumes/MAC/cocoswork/QuickGame/frameworks/runtime-src/proj.android/…/…/cocos2d-x:/Volumes/MAC/cocoswork/QuickGame/frameworks/runtime-src/proj.android/…/…/cocos2d-x/cocos/:/Volumes/MAC/cocoswork/QuickGame/frameworks/runtime-src/proj.android/…/…/cocos2d-x/external:/Volumes/MAC/cocoswork/QuickGame/frameworks/runtime-src/proj.android/…/…/cocos2d-x/cocos/scripting:/Volumes/MAC/cocoswork/QuickGame/frameworks/runtime-src/proj.android/…/…/cocos2d-x/cocos/quick_libs NDK_TOOLCHAIN_VERSION=4.9 NDK_DEBUG=1’

make: Entering directory /Volumes/MAC/cocoswork/QuickGame/frameworks/runtime-src/proj.android' StaticLibrary : libsimulator.a StaticLibrary : libquick_libs.a Compile++ thumb: extra_static <= CCHTTPRequestAndroid.cpp StaticLibrary : libquickextensions.a Compile thumb : cocos2d_lua_static <= usocket.c Compile++ thumb: cocos2d_lua_static <= lua_cocos2dx_cocosbuilder_manual.cpp Compile++ thumb: cocos2d_lua_static <= CCBProxy.cpp Compile++ thumb: cocos2d_lua_static <= lua_cocos2dx_coco_studio_manual.cpp Compile++ thumb: cocos2d_lua_static <= CustomGUIReader.cpp Compile++ thumb: cocos2d_lua_static <= lua_cocos2dx_csloader_manual.cpp Compile++ thumb: cocos2d_lua_static <= lua_cocos2dx_spine_manual.cpp Compile++ thumb: cocos2d_lua_static <= LuaSkeletonAnimation.cpp Compile++ thumb: cocos2d_lua_static <= lua_cocos2dx_experimental_video_manual.cpp Compile++ thumb: cocos2d_lua_static <= lua_cocos2dx_ui_manual.cpp /Volumes/MAC/cocoswork/QuickGame/frameworks/runtime-src/proj.android/../../cocos2d-x/cocos/quick_libs/src/extra/platform/android/CCHTTPRequestAndroid.cpp:5:44: fatal error: platform/android/jni/jniHelper.h: No such file or directory #include "platform/android/jni/jniHelper.h" ^ compilation terminated. make: *** Error 1 make: *** Waiting for unfinished jobs.... /Volumes/MAC/cocoswork/QuickGame/frameworks/runtime-src/proj.android/../../cocos2d-x/cocos//scripting/lua-bindings/proj.android/../manual/spine/lua_cocos2dx_spine_manual.cpp: In function 'void extendCCSkeletonAnimation(lua_State*)': /Volumes/MAC/cocoswork/QuickGame/frameworks/runtime-src/proj.android/../../cocos2d-x/cocos//scripting/lua-bindings/proj.android/../manual/spine/lua_cocos2dx_spine_manual.cpp:478:43: warning: 'int tolua_spine_SkeletoneAnimation_setBlendFunc(lua_State*)' is deprecated (declared at /Volumes/MAC/cocoswork/QuickGame/frameworks/runtime-src/proj.android/../../cocos2d-x/cocos//scripting/lua-bindings/proj.android/../manual/spine/lua_cocos2dx_spine_manual.cpp:325) -Wdeprecated-declarations] tolua_function(L, "setBlendFunc", tolua_spine_SkeletoneAnimation_setBlendFunc); ^ At global scope: cc1plus: warning: unrecognized command line option "-Wno-extern-c-compat" cc1plus: warning: unrecognized command line option "-Wno-extern-c-compat" /Volumes/MAC/cocoswork/QuickGame/frameworks/runtime-src/proj.android/../../cocos2d-x/cocos//scripting/lua-bindings/proj.android/../manual/cocostudio/lua_cocos2dx_coco_studio_manual.cpp: In function 'int lua_cocos2dx_extension_Bone_getIgnoreMovementBoneData(lua_State*)': /Volumes/MAC/cocoswork/QuickGame/frameworks/runtime-src/proj.android/../../cocos2d-x/cocos//scripting/lua-bindings/proj.android/../manual/cocostudio/lua_cocos2dx_coco_studio_manual.cpp:386:62: warning: 'virtual bool cocostudio::Bone::getIgnoreMovementBoneData() const' is deprecated (declared at /Volumes/MAC/cocoswork/QuickGame/frameworks/runtime-src/proj.android/../../cocos2d-x/cocos//editor-support/cocostudio/../cocostudio/CCBone.h:194) -Wdeprecated-declarations] tolua_pushboolean(L, self->getIgnoreMovementBoneData()); ^ At global scope: cc1plus: warning: unrecognized command line option "-Wno-extern-c-compat" cc1plus: warning: unrecognized command line option "-Wno-extern-c-compat" make: Leaving directory /Volumes/MAC/cocoswork/QuickGame/frameworks/runtime-src/proj.android’

眼拙,能不能多贴一点错误信息。。

晚上回去再多贴上来,公司没带自己的电脑,呵呵

我用 cocos run -p mac 是可以打包成功的,apk就不行

同样的错误:

cocos new MyLuaGame -p com.your.myluagame -l lua -d workspace

yourchanges@yourchanges:MyLuaGame$ cocos run -p android

Running command: compile
Building mode: debug
Android platform not specified, searching a default one…
running: ‘/home/yourchanges/android-sdk-linux/tools/android update project -t android-21 -p /home/yourchanges/cocos2d/quick-3.5/workspace/MyLuaGame/frameworks/runtime-src/proj.android’

Updated project.properties
Updated local.properties
Updated file /home/yourchanges/cocos2d/quick-3.5/workspace/MyLuaGame/frameworks/runtime-src/proj.android/proguard-project.txt
It seems that there are sub-projects. If you want to update them
please use the --subprojects parameter.
Android platform not specified, searching a default one…
running: ‘/home/yourchanges/android-sdk-linux/tools/android update lib-project -p /home/yourchanges/cocos2d/quick-3.5/workspace/MyLuaGame/frameworks/runtime-src/proj.android/…/…/cocos2d-x/cocos/platform/android/java -t android-21’

Updated project.properties
Updated local.properties
Updated file /home/yourchanges/cocos2d/quick-3.5/workspace/MyLuaGame/frameworks/runtime-src/proj.android/…/…/cocos2d-x/cocos/platform/android/java/proguard-project.txt
building native
NDK build mode: debug
NDK_TOOLCHAIN_VERSION: 4.8
running: ‘/home/yourchanges/android-ndk-r9c/ndk-build -C /home/yourchanges/cocos2d/quick-3.5/workspace/MyLuaGame/frameworks/runtime-src/proj.android -j4 NDK_MODULE_PATH=/home/yourchanges/cocos2d/quick-3.5/workspace/MyLuaGame/frameworks/runtime-src/proj.android/…/…/cocos2d-x:/home/yourchanges/cocos2d/quick-3.5/workspace/MyLuaGame/frameworks/runtime-src/proj.android/…/…/cocos2d-x/cocos/:/home/yourchanges/cocos2d/quick-3.5/workspace/MyLuaGame/frameworks/runtime-src/proj.android/…/…/cocos2d-x/external:/home/yourchanges/cocos2d/quick-3.5/workspace/MyLuaGame/frameworks/runtime-src/proj.android/…/…/cocos2d-x/cocos/scripting:/home/yourchanges/cocos2d/quick-3.5/workspace/MyLuaGame/frameworks/runtime-src/proj.android/…/…/cocos2d-x/cocos/quick_libs NDK_TOOLCHAIN_VERSION=4.8 NDK_DEBUG=1’

Android NDK: WARNING: APP_PLATFORM android-19 is larger than android:minSdkVersion 9 in ./AndroidManifest.xml
make: Entering directory /home/yourchanges/cocos2d/quick-3.5/workspace/MyLuaGame/frameworks/runtime-src/proj.android' StaticLibrary : libsimulator.a StaticLibrary : libquick_libs.a Compile++ thumb: extra_static <= CCHTTPRequestAndroid.cpp Compile++ thumb: extra_static <= NVGNode.cpp Compile++ thumb: extra_static <= NVGDrawNode.cpp Compile thumb : quick_extensions_static <= quick_extensions.c Compile thumb : quick_extensions_static <= lua_zlib.c Compile thumb : quick_extensions_static <= lfs.c /home/yourchanges/cocos2d/quick-3.5/workspace/MyLuaGame/frameworks/runtime-src/proj.android/../../cocos2d-x/cocos/quick_libs/src/extra/platform/android/CCHTTPRequestAndroid.cpp:5:44: fatal error: platform/android/jni/jniHelper.h: No such file or directory #include "platform/android/jni/jniHelper.h" ^ compilation terminated. make: *** Error 1 make: *** Waiting for unfinished jobs.... make: Leaving directory /home/yourchanges/cocos2d/quick-3.5/workspace/MyLuaGame/frameworks/runtime-src/proj.android’
Ndk build failed!