cocos2d-js 3.7 android编译问题

语言版本: frameworks3.7 cocos2d-js分支

Windows simulator 正常运行。但编译android出错

编译指令 cocos compile -p android 或用 cocos compile -p android -ap 20

编译错误如下:
正在执行 ndk-build…
NDK 编译模式:debug
NDK_TOOLCHAIN_VERSION: 4.8
正在执行:’“D:\Android\android-ndk-r9d-windows-x86_64\android-ndk-r9d\ndk-build” -C I:\project\0214\head\client\0214\frameworks\runtime-src\proj.android -j4 NDK_MODULE_PATH=C:\Cocos\frameworks/cocos2d
-x-3.7;C:\Cocos\frameworks/cocos2d-x-3.7/cocos;C:\Cocos\frameworks/cocos2d-x-3.7/external NDK_TOOLCHAIN_VERSION=4.8 NDK_DEBUG=1’

make.exe: Entering directory I:/project/0214/head/client/0214/frameworks/runtime-src/proj.android' Compile++ thumb: cocos2djs_shared <= AppDelegate.cpp Compile++ thumb: cocos2djs_shared <= SimpleConfigParser.cpp Compile++ thumb: cocos2djs_shared <= RuntimeJsImpl.cpp arm-linux-androideabi-g++: error: unrecognized argument in option '-mtune=atom' arm-linux-androideabi-g++: note: valid arguments to '-mtune=' are: arm1020e ... arm9tdmi cortex-a15 ... cortex-r5 ep9312 fa526 ... fa726te fmp626 generic-armv7-a iwmmxt iwmmxt2 marvell-pj4 mpcore mpcorenovfp native strongarm strongarm110 strongarm1100 stronga rm1110 xscale arm-linux-androideabi-g++: error: unrecognized command line option '-msse3' arm-linux-androideabi-g++: error: unrecognized command line option '-mfpmath=sse' arm-linux-androideabi-g++: error: unrecognized argument in option '-mtune=atom' arm-linux-androideabi-g++: note: valid arguments to '-mtune=' are: arm1020e ... arm9tdmi cortex-a15 ... cortex-r5 ep9312 fa526 ... fa726te fmp626 generic-armv7-a iwmmxt iwmmxt2 marvell-pj4 mpcore mpcorenovfp native strongarm strongarm110 strongarm1100 stronga rm1110 xscale arm-linux-androideabi-g++: error: unrecognized command line option '-msse3' arm-linux-androideabi-g++: error: unrecognized command line option '-mfpmath=sse' arm-linux-androideabi-g++: error: unrecognized argument in option '-mtune=atom' arm-linux-androideabi-g++: note: valid arguments to '-mtune=' are: arm1020e ... arm9tdmi cortex-a15 .. cortex-r5 ep9312 fa526 ... fa726te fmp626 generic-armv7-a iwmmxt iwmmxt2 marvell-pj4 mpcore mpcorenovfp native strongarm strongarm110 strongarm1100 stronga rm1110 xscale arm-linux-androideabi-g++: error: unrecognized command line option '-msse3' arm-linux-androideabi-g++: error: unrecognized command line option '-mfpmath=sse' make.exe: *** Error 1 make.exe: *** Waiting for unfinished jobs.... make.exe: *** Error 1 make.exe: *** Error 1 Compile++ thumb: cocos2djs_shared <= main.cpp arm-linux-androideabi-g++: error: unrecognized argument in option '-mtune=atom' arm-linux-androideabi-g++: note: valid arguments to '-mtune=' are: arm1020e ... arm9tdmi cortex-a15 ... cortex-r5 ep9312 fa526 ... fa726te fmp626 generic-armv7-a iwmmxt iwmmxt2 marvell-pj4 mpcore mpcorenovfp native strongarm strongarm110 strongarm1100 stronga rm1110 xscale arm-linux-androideabi-g++: error: unrecognized command line option '-msse3' arm-linux-androideabi-g++: error: unrecognized command line option '-mfpmath=sse' make.exe: *** Error 1 make.exe: Leaving directory I:/project/0214/head/client/0214/frameworks/runtime-src/proj.android’
执行命令出错,返回值:2。

楼主解决问题没有。我也报错。返回值:1

我知道原因了。环境问题, 尤其是ndk 的版本检查是否正确