I have a problem with including the bullet library correctly.
If i try to compile vehicleDemo.cpp i get the following message.
Code: Select all
/home/username/bullet/bullet-libs/libLibBulletDynamics.a(btDiscreteDynamicsWorld.o): In function `btDiscreteDynamicsWorld::addRigidBody(btRigidBody*)':
btDiscreteDynamicsWorld.cpp:(.text+0x699): undefined reference to `btCollisionWorld::addCollisionObject(btCollisionObject*, short, short)'
I am using KDevelop. After running make i copied the .a files to:
/home/username/bullet/bullet-libs
I added this path with -L/home/username/bullet/bullet-libs to the LDFlags.
After that i added the Libs to the CXXFlags:
-lLibBulletCollision -lLibBulletDynamics -lLibLinearMath -lLibOpenGLSupport
At last i added the Directories with the .h files to my include folders:
-I/home/username/bullet/bullet-2.53
-I/home/username/bullet/bullet-2.53/src
-I/home/username/bullet/bullet-2.53/Demos/OpenGL
Can someone help me and tell me what i did wrong (im not so familiar with C++)?
Sorry for my poor english.
thanks Xorms