Cocos 3.16 Bullet precompiled libraries for VS2015


#1

Hi!
I’m updating my project from cocos2d-x 3.15 to cocos2d-x 3.16 and, as the changelog states, this new version is using precompiled libraries for Bullet.
The problem is that this libraries has been compiled with _MSC_VER 1800 and I’m using _MSC_VER 1900.

I want to recompile the libraries for the right version of the compiler.
What version of Bullet was used to compile this libraries? Is it the last one (Bullet3)?

Thanks.

PD: the answer to this question might help me to close the other one I have in this forum (very much related).


#2

I think your answer is here: https://github.com/cocos2d/cocos2d-x-3rd-party-libs-src

and here: https://github.com/cocos2d/cocos2d-x-3rd-party-libs-bin


#3

Hi again.
First of all, thanks for the reply and sorry for taking so long for coming back.
I tried to build the externals using the windows script (I’m using Windows 10 for development right now).
After running the build_win10_uwp.bat script, I have some errors (picture attached)

Mentioned logs show this:
config-x86-uwp-rel-err.log

CMake Error at CMakeLists.txt:4 (project):
A Windows Store component with CMake requires both the Windows Desktop SDK
as well as the Windows Store ‘10.0’ SDK. Please make sure that you have
both installed

CMakeOutput.log

The target system is: WindowsStore - 10.0 -
The host system is: Windows - 10.0.16299 - AMD64

So, reading that, I downloaded and installed this https://developer.microsoft.com/en-us/windows/downloads/windows-10-sdk
and run vcpkg.exe update. No packages updated.

Still, having the same issue, so I can’t build the externals.
Any clue on what could be failing?

Cheers


#4

I am not sure exactly. @zhangxm might be able to help us.


#5

I want to add that I found this: https://github.com/cocos2d/cocos2d-x/issues/17966
I think that solution will solve my problem running the right library but I still want to get my hands on the source code of the Externals to build them myself.


#6

@mbrp you can get the information here: https://github.com/cocos2d/cocos2d-x-3rd-party-libs-src/blob/v3/contrib/src/bullet/rules.mak.


#7

Hi!
Nice! So Bullet3 it is. I see all the flags and config for the cmake build but, there’s something that caught my eye, this

bullet: libbullet-git.tar.xz .sum-bullet
$(UNPACK)
$(APPLY) $(SRC)/bullet/cocos2d.patch
$(MOVE)

That cocos2d.patch… Is that something I should worry if I just download the Bullet src (master) and compile it myself?

Cheers.


#8

I am not sure if it will have problem, i think the patch just to fix compiling errors on some platform. So i think there is not problem if you can compile it. Or you can apply the same patch to compile it.


#9

Hi!
Thanks for the answer. I’ve been crazy busy lately, so I didn’t have the chance to test this. My question is answered. Once I try to compile and apply the patch, if something goes wrong, I will open a new one.
Thank you everyone!