用新版的ndk 编译 cocos 引擎编译出错

1.先发log

In file included from /Users/yuruxuan/Coco2dxProjects/TouchDot/build/jsb-default/frameworks/cocos2d-x/cocos/audio/android/../../audio/android/audio.h:31:0,
                 from /Users/yuruxuan/Coco2dxProjects/TouchDot/build/jsb-default/frameworks/cocos2d-x/cocos/audio/android/../../audio/android/AudioResampler.h:32,
                 from /Users/yuruxuan/Coco2dxProjects/TouchDot/build/jsb-default/frameworks/cocos2d-x/cocos/audio/android/AudioDecoder.cpp:28:
/Users/yuruxuan/Coco2dxProjects/TouchDot/build/jsb-default/frameworks/cocos2d-x/cocos/audio/android/../../audio/android/cutils/bitops.h: In function 'int bitmask_ffz(unsigned int*, int)':
/Users/yuruxuan/Coco2dxProjects/TouchDot/build/jsb-default/frameworks/cocos2d-x/cocos/audio/android/../../audio/android/cutils/bitops.h:65:30: error: 'ffs' was not declared in this scope
         bit = ffs(~bitmask[i]);
                              ^
[x86] Compile++      : audioengine_static <= AudioDecoderMp3.cpp
make: *** [obj/local/x86/objs/audioengine_static/AudioDecoder.o] Error 1
make: *** Waiting for unfinished jobs....
make: Leaving directory `/Users/yuruxuan/Coco2dxProjects/TouchDot/build/jsb-default/frameworks/runtime-src/proj.android-studio/app'
Error running command, return code: 2.

2.我的环境
MacBook 10.11.6
NDK 15.1.4119039
CCC 1.5.1

好像只有x86 编译不过。。。求各位引擎大大给个解决方案 在线等

544324974@qq.com 这个是我的联系方式

这个是系统函数:http://man7.org/linux/man-pages/man3/ffs.3.html

你用ndk 10e试试看。

目测bitmask_ffz没有使用到,你可以删除这个函数试试。

我就不瞎搞了 我需求上不需要兼容x86 就是告诉引擎大大们一声 你们记一个todo吧 毕竟编不过还是挺操蛋的

https://github.com/cocos-creator/cocos2d-x-lite/pull/752

在这个PR中修复了。