cocos2dx-bullet物理引擎编译的一个问题: Argument value 10880 is outside the valid range

简介: cocos2dx-bullet物理引擎编译的一个问题: Argument value 10880 is outside the valid range

bullet物理引擎位置在: cocos2d-x/external/bullet

在xcode上编译会遇到一个问题:

Argument value 10880 is outside the valid range [0, 255]

解决办法是:

修改源文件: cocos2d-x/external/bullet/include/bullet/LinearMath/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)
复制代码

官方的issue有关于这个问题的讨论,在bullet的官方仓库里面也是这样的修改至于原因,没有必要深究了



目录
相关文章
Pyinstaller:moviepy打包报错AttributeError: module ‘moviepy.audio.fx.all‘ has no attribute ‘audio_fadein‘
该文章分享了使用Pyinstaller打包moviepy库时遇到的`AttributeError: module 'moviepy.audio.fx.all' has no attribute 'audio_fadein'`错误,分析了问题原因,并提供了修改moviepy子包中的`__init__.py`文件来解决动态加载模块问题的详细步骤和最终打包成功的结果。
|
8月前
|
Swift iOS开发 MacOS
解决新版xcode下swift .infinity报Invalid frame dimension (negative or non-finite)错误
解决新版xcode下swift .infinity报Invalid frame dimension (negative or non-finite)错误
238 1
|
8月前
MTK在编译10A的target时报错:make: *** [mmi_feature_check]
MTK在编译10A的target时报错:make: *** [mmi_feature_check]
35 0
Multiple substitutions specified in non-positional format; did you mean to add BUG(7)
Multiple substitutions specified in non-positional format; did you mean to add BUG(7)
CodeBlocks中运行出现undifined reference to std::cxxll:basic_string错误解决方案
CodeBlocks中运行出现undifined reference to std::cxxll:basic_string错误解决方案
572 0
CodeBlocks中运行出现undifined reference to std::cxxll:basic_string错误解决方案
Python bug:ValueError: invalid literal for int() with base 10: ''
Python bug:ValueError: invalid literal for int() with base 10: ''
|
iOS开发
Xcode消除警告:-1: The iOS Simulator deployment target is set to 6.0, but the range of supported deplo...
Xcode消除警告:-1: The iOS Simulator deployment target is set to 6.0, but the range of supported deplo...
176 0
Xcode消除警告:-1: The iOS Simulator deployment target is set to 6.0, but the range of supported deplo...
|
Python
【错误记录】PyCharm 运行 Python 程序报错 ( PEP 8: E305 expected 2 blank lines after class or function definiti )
【错误记录】PyCharm 运行 Python 程序报错 ( PEP 8: E305 expected 2 blank lines after class or function definiti )
894 0
【错误记录】PyCharm 运行 Python 程序报错 ( PEP 8: E305 expected 2 blank lines after class or function definiti )
成功解决AttributeError: type object 'h5py.h5r.Reference' has no attribute '__reduce_cython__'
成功解决AttributeError: type object 'h5py.h5r.Reference' has no attribute '__reduce_cython__'
成功解决AttributeError: type object 'h5py.h5r.Reference' has no attribute '__reduce_cython__'
成功解决random.py"之TypeError: 'range' object does not support item assignment 解决问题
成功解决random.py"之TypeError: 'range' object does not support item assignment