Xcode 11、Cocos2dx编译问题:Argument value 10880 is outside the valid range [0, 255] btVector3.h
Xcode 11, Cocos2dx compilation problem: Argument value 10880 is outside the valid range [0, 255] btVector3.h
请看附件图片。在 Xcode 11 中,Cocos2d-x 给出错误:参数值 10880 超出有效范围 [0, 255] btVector3.h
代码行出错
y = bt_splat_ps(y, 0x80); // in file btVector3.h
如何解决这个问题?
本论坛建议的临时解决方案:https://discuss.cocos2d-x.org/t/xcode-11-ios-13-cocos-not-running/46825
在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)
这解决了编译错误。等待 Cocos2d 团队的有效修复:-
请看附件图片。在 Xcode 11 中,Cocos2d-x 给出错误:参数值 10880 超出有效范围 [0, 255] btVector3.h
代码行出错
y = bt_splat_ps(y, 0x80); // in file btVector3.h
本论坛建议的临时解决方案:https://discuss.cocos2d-x.org/t/xcode-11-ios-13-cocos-not-running/46825
在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)
这解决了编译错误。等待 Cocos2d 团队的有效修复:-