Using cmake to build..

molma100
Posts: 11
Joined: Sat Apr 09, 2011 8:12 pm

Using cmake to build..

Post by molma100 »

hey, ive been having some problems with building BulletPhysics to work with my project...

heres what i did:

Some other information is that im building this for CodeBlocks with MinGW on windoes 32 bit



moved the bullet folder to C:\ (to make things quicker)

in the command prompt, i used 'cd' to get to the location, this location was just that bullet folder(the entire folder)

then i used

Code: Select all

cmake -G "MinGW Makefiles"
to make the makefiles, then i used

Code: Select all

mingw32-make
to create the libraries.

these worked fine with a couple errors(about 2) and i went and moved the src folder with the Extras folder(because i was using bulletworldimporter) so i could use these.

i wasnt sure on which libraries to add, so i added them all(there were about 12)

when i builded my game(i already had code from a different version) i got about 50 undefined errors, mainly coming from libBulletCynamics.o

i tried removing it, and all i got was the undefined errors from not having that library in...


im wondering how i would build my bullet library without getting these errors, or at least find a way to build the BulletWorldImporter piece so i could use it in my game.

any answers would be helpful :D
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Re: Using cmake to build..

Post by Erwin Coumans »

MinGW? Why not use the free Visual Studio compiler?

Anyhow, make sure to add the libraries in the right order:
BulletWorldImporter BulletSoftBody BulletDynamics BulletCollision BulletFileLoader LinearMath

Thanks,
Erwin
molma100
Posts: 11
Joined: Sat Apr 09, 2011 8:12 pm

Re: Using cmake to build..

Post by molma100 »

alright, ill try that then. ill be back with the results


EDIT: NICE IT WORKED! Thanks!

and to think that simple file order would affect that...Ima write this order down for future reference :D