Xcode Version 11.0 (11A420a) ,cocos编译不过

bullet 库报错,

cocos2d-x/external/bullet/include/bullet/LinearMath/btVector3.h:330:7: error: argument value 10880 is outside the valid range [0, 255] [-Wargument-outside-range]
y = bt_splat_ps(y, 0x80);

ocos2d-x/external/bullet/include/bullet/LinearMath/btMatrix3x3.h:861:17: error: argument value 10880 is outside the valid range [0, 255] [-Wargument-outside-range]
__m128 vk = bt_splat_ps(_mm_load_ss((float *)&k), 0x80);

btVector3.h文件
#define BT_SHUFFLE(x, y, z, w) ((w) << 6 | (z) << 4 | (y) << 2 | (x))
修改为:
#define BT_SHUFFLE(x, y, z, w) (((w) << 6 | (z) << 4 | (y) << 2 | (x)) & 0xff)

4赞

楼主解决了吗

确实可以编译了。。。。。

可以了,谢谢

可以了

可以了,谢谢