[SOLVED]Ogre Bullet Project doesnt Compile

Nathn123

14-02-2015 22:30:33

Hi All

I have built and integrated Ogre bullet into my project but when i attempt to compile i receive an error with the libs

bulletdynamics_Debug.lib(btDiscreteDynamicsWorld.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MTd_StaticDebug' doesn't match value 'MDd_DynamicDebug' in Physics_FrameListener.obj

this error is repeated for the different object files in the libs for example

bulletdynamics_Debug.lib(btSequentialImpulseConstraintSolver.obj)
bulletdynamics_Debug.lib(btRigidBody.obj)
bulletdynamics_Debug.lib(btRaycastVehicle.obj)

I assume it is due to the Runtime Library setting in the code generation setting, but i don't understand how to fix it

AlexeyKnyshev

14-02-2015 23:32:26

I recommend you to use CMake-based build system.

Regards, Alexey Knyshev

Nathn123

15-02-2015 01:10:02

after looking more closely at the error i have realised that i accidentally create bullet as a static lib rather than dynamic lib.

for anyone else with the same problem ensure that when you create bullet in cmake you click USE_MSVC_RUNTIME_LIBRARY_DLL
this will ensure its dynamic libs, i will mark this topic as solved