본문 바로가기

cocos2d-x

cocos2d-x Argument value 10880 is outside the valid range [0,255] 에러 해결

반응형

문제 발생

Xcode 13 에서 cocos2d-x-3.17.2 새로운 프로젝트 만들어서 빌드하면 에러 발생

cocos2d/external/bullet/include/bullet/LinearMath/btVector3.h:330:7:

error: argument value 10880 is outside the valid range [0, 255] [-Wargument-outside-range]

해결

bt_splat_ps 가 define 된 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)

반응형