OgreBullet as DLL

sincoder

03-01-2009 18:51:07

Hello!

First of I want to say OgreBullet is the best physics plugin for Ogre I've seen so far. I've compiled the SDK and when I link it to my app it gives a lot of linking warnings:
warning LNK4099: PDB 'vc90.pdb' was not found.
If I turn off the precompiled header in the OgreBullet project then each static .lib file grows over 100 MB!

Another big problem with static linking is that doesn't work when using different versions of Visual C++ 2008 - ex: my work place doesn't have the latest Service Pack but I do at home and that's just me - our team has 20 people!

A DLL would fix all those problems and all our other Ogre plugins (OgreAL, ETM, etc) are compiled as DLLs because its cleaner and less errorprone. I tried compiling OgreBullet to DLL myself but it lacks dllexport definitions so it needs your help. Please give the option to compile OgreBullet as DLL like Ogre itself.

Thank you

tuan kuranes

05-01-2009 10:15:59

static linking is that doesn't work when using different versions of Visual C++ 2008
It should work flawlessly. problem might come from bullet lib, mixing debug and release libs (vc9.idb message is often from that mixing problems.)


A DLL would fix all those problems and all our other Ogre plugins (OgreAL, ETM, etc) are compiled as DLLs because its cleaner and less errorprone. I tried compiling OgreBullet to DLL myself but it lacks dllexport definitions so it needs your help. Please give the option to compile OgreBullet as DLL like Ogre itse

Dll is less optimized, bigger in memory, etc... so libs are only DLL because of licenses restriction.
Anyway, as It was a DLL before so it should be hard to go back. Just find the Preprocessor macro that enables it. (cannot recall the name check headers.)