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
Bullet and Irrlicht on linux
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
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
My bullet/lib folder is empty except for a 'readme.txt.'
That file contains the following;
That file contains the following;
Thanks for the replyAt 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
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!
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!