Bullet and Irrlicht on linux

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
ben
Posts: 18
Joined: Fri May 22, 2009 4:43 pm

Bullet and Irrlicht on linux

Post by ben »

Hi,

I'm running linux, compiling my irricht code with a makefile.
I have managed to compile bullet and the examples work fine.
Bullet uses CMake to create makefiles, and I'm at a loss as to how to combine the resulting bullet makefile with the irrlicht one to create a single executable...

Anyone know how?

Thanks for your time
Ben
clemens
Posts: 7
Joined: Sun May 24, 2009 7:21 am

Post by clemens »

this depends on what you want to do.
normally you use irrlicht for graphics output to view your
scene. and if you want also to add some physics to your scene-objects
you simply have to use the bullet-library. you have used the
bullet examples, so the library is compiled already.
just search the irrlicht makefile for USERLDFLAGS.
then add your path to the bullet lib:
USERLDFLAGS = -L/path/to/your/bullet/lib -lbulletdynamics -lbulletcollision -lbulletmath -lbulletsoftbody -lconvexdecomposition

thats all. ah, no - dont forget to add the bullet-include(s) to your irrlicht
code: #include "btBulletDynamicsCommon.h"

and of course the bullet-functions to make your objects fall down :wink:
ben
Posts: 18
Joined: Fri May 22, 2009 4:43 pm

Post by ben »

My bullet/lib folder is empty except for a 'readme.txt.'
That file contains the following;
At the moment there are no binary packages from Bullet library.

Once this is done, 3 libraries will be placed here:

bulletmath.a

bulletcollision.a

bulletdynamics.a


The C-API will be available in the include folder.



For now, there is only C++ files, see src/btBulletCollisionCommon.h and src/btBulletDynamicsCommon.h



http://bullet.sf.net

Erwin Coumans
Thanks for the reply
clemens
Posts: 7
Joined: Sun May 24, 2009 7:21 am

Post by clemens »

maybe you have installed the bullet-libs as user root in a system folder?
to check where the libs are go to your bullet folder and type:
grep LIBRARY_OUTPUT_PATH *

this should output the folder where the compiler/linker will store the libs.
make a ls to this path to look if there are some libs named "libxxxx.a".
if so - put this path to the irrlicht makefile as described earlier.
if not, run cmake -i in the bullet folder and check the variable-settings. maybe something is not correct set yet?

good luck!
Post Reply