Page 1 of 1

Bullet integration

Posted: Sat May 06, 2017 1:58 pm
by cosmo
Hi,
I'm trying to integrate Bullet Physics SDK into Irrlicht.
I used cMake Gui to generate Visual Studio 2013 Build. Then I opened ALLBUILD proj and rebuild the HelloWorld example to obtain the libs.
After that, I configureted my Irrlicht proj properties (Debug mode) as follows:
c/c++->General->Additional Include Dir: path to the VS2013 source folder
VC++ Dir-> Include Dir: path to the source VS2013 folder and Library Dir: path to the lib folder
Linker->Input (BulletDynamics_Debug.lib; BulletCollision_Debug.lib; LinearMath_Debug.lib)

But when I build, Vs tossed out this kind of error: "LNK2038 mismatch detected for runtimelibrary: the value 'MTd_StaticDebug' does not match the 'MDd_DynamicDebug' value in Main.obj "
What's wrong? How can I solve this issue?
More in general, which is the correct way to integrate Bullet into Irrlicht apps?
Thanks and kind regards!

(cosmo)

Re: Bullet integration

Posted: Sat May 06, 2017 2:38 pm
by CuteAlien
Your application and it's libraries all have to use the MS runtime libraries the same way. The setting inside VS is in Configuration Properties - C/C++ - Code Generation - Runtime Library.
Not sure how to set it via CMake right now.

Re: Bullet integration

Posted: Sat May 06, 2017 3:46 pm
by cosmo
Ok, thanks!
But, in your opinion, which is the best way to integrate Bullet into Irrlicht for physic simulation?
I found some code examples but no tutorials about the configuration process in Visual studio... :roll:
Regards!

Re: Bullet integration

Posted: Sat May 06, 2017 9:51 pm
by Seven
I don't use Bullet, but if you are just wanting a physics integrations, I have a pretty decent NVidia PhysX wrapper that I can share.

Re: Bullet integration

Posted: Sun May 07, 2017 8:11 am
by cosmo
Yes, I'm interested in physics integrations. Not only Bullet, also another library is fine for me.
I will give a sneak peek on PhysX, but in the meantime, please could you supply a brief introduction about it, particullary aimed to Irrlicht integration?
Is it easy to grasp?

Re: Bullet integration

Posted: Sun May 07, 2017 1:51 pm
by CuteAlien
The MS runtime libraries having to be identical is something you have to care about independent of which 2 libraries you put together. Maybe some more link about that helps: http://stackoverflow.com/questions/1471 ... imelibrary

Re: Bullet integration

Posted: Sun May 07, 2017 3:03 pm
by Seven
here is an example of how to integrate PhysX with Irrlicht

https://github.com/SevenGameMaker/Cobbl ... anager.cpp

Re: Bullet integration

Posted: Mon May 08, 2017 10:15 am
by cosmo
Thank you so much!