These days i make Box2D as a prebuilt lib to speed up compiling and remove warnings: https://github.com/cocos2d/cocos2d-x/pull/18422.
The Box2D git repo is here: https://github.com/erincatto/Box2D. The latest release version is 2.3.1, which is released 3 years ago. After that, there are many commits merged, but not a stable version is released.
@KAMIKAZE suggests to use latest commit of Box2D, and he always uses Box2D’s latest codes. But i am not sure since the author doesn’t make it as a release version.
I am not sure if we can do it as @KAMIKAZE’s suggestion, because:
- i can not make sure it is stable
- there is building script to generate prebuilt Box2D: https://github.com/cocos2d/cocos2d-x-3rd-party-libs-src
That’s why i create this thread. I will use latest commit if most developers agree with it.
- use released version 2.3.1
- use latest commit