Bullet Physics Compiled for GCC

Post your questions, suggestions and experiences regarding game design, integration of external libraries here. For irrEdit, irrXML and irrKlang, see the
ambiera forums
Post Reply
GameDude
Posts: 498
Joined: Thu May 24, 2007 12:24 am

Bullet Physics Compiled for GCC

Post by GameDude »

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
kh_
Posts: 78
Joined: Fri May 19, 2006 4:29 pm

Post by kh_ »

You can import it ( a vs project) to code blocks and compile with mingw,if that's what you mean.

btw,sometimes you can use a lib file by using the full path instead of a search directory.
roelor
Posts: 240
Joined: Wed Aug 13, 2008 8:06 am

Post by roelor »

he wants to compile it wit gcc not with minigw.
randomMesh
Posts: 1186
Joined: Fri Dec 29, 2006 12:04 am

Post by randomMesh »

roelor wrote:he wants to compile it wit gcc not with minigw.
MinGW IS gcc.
GameDude
Posts: 498
Joined: Thu May 24, 2007 12:24 am

Post by GameDude »

I've gotten it to compile with VC Compiler, I DL the express edition of VC++
Mel
Competition winner
Posts: 2292
Joined: Wed May 07, 2008 11:40 am
Location: Granada, Spain

Post by Mel »

Has anyone tried actually to import a vs project to codeblocks and compile it properly?
"There is nothing truly useless, it always serves as a bad example". Arthur A. Schmitt
wyrmmage
Posts: 204
Joined: Sun Mar 16, 2008 3:12 am
Contact:

Post by wyrmmage »

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
Worlds at War (Current Project) - http://www.awkward-games.com
Ganadu'r, The Eternal Sage (Other Current Project) - http://rpg.naget.com
kh_
Posts: 78
Joined: Fri May 19, 2006 4:29 pm

Post by kh_ »

Mel wrote:Has anyone tried actually to import a vs project to codeblocks and compile it properly?
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):

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.
Post Reply