Bullet Physics Compiled for GCC
Bullet Physics Compiled for GCC
Hey Does anyone have the bullet physics library version .273 sp1 compiled with the gcc? I compiled it with the VS compiler and I think that's why I can't use it in my project which is using the gcc compiler. I tried compiling it myself with the gcc compiler, but no luck, has anyone else had any better luck
-
- Posts: 1186
- Joined: Fri Dec 29, 2006 12:04 am
mingw can link with VC DLLs, so if all else fails you could always build the DLL in VC and then just link it with your mingw compiler
-wyrmmage
-wyrmmage
Worlds at War (Current Project) - http://www.awkward-games.com
Ganadu'r, The Eternal Sage (Other Current Project) - http://rpg.naget.com
Ganadu'r, The Eternal Sage (Other Current Project) - http://rpg.naget.com
Sorry for the delay, I've been busy using Ode and needed to do it over to be sure of the steps (on windows xp):Mel wrote:Has anyone tried actually to import a vs project to codeblocks and compile it properly?
I used File>Import>MS Visual Studio Solution. (the bottom one)
then select "wksbullet.sln" file in the msvc/8 folder. It took a little time to import them.
The math ,collision and dynamics projects compiled with only a few minor warnings.
I got the "Hello World" to compile by adding the libs to "link libraries" in this order (like explained in the wiki):
bulletdynamics
bulletcollision
bulletmath
I also added the "bullet-2.73\out\release8\libs" folder to the linker search directories (I would highly recommend using global variables)
I also compiled libglui and a few other lib projects like libopenglsupport.
I got the dino demo to work by changing the project Build targets/ output (filename) and working dir to use the main Bullet folder,
my linker order was like this:
opengl32
glu32
glut32
bulletdynamics
bulletcollision
bulletmath
For the appBasicDemo my linker order was like this:
bulletopenglsupport
opengl32
glu32
glew32
glut32
bulletdynamics
bulletcollision
bulletmath
EDIT:
Use :
File>Import>MS Visual Studio Solution. (the bottom one)
instead of the top one
(I would have sworn I tried them all and only the first worked)
You will probably need to fix a few more things to make a dll.