Bullet headers won't compile - Ubuntu 10.10

Rommel
Posts: 4
Joined: Sat Jan 22, 2011 8:27 am

Bullet headers won't compile - Ubuntu 10.10

Post by Rommel »

I ran the following terminal commands after a direct copy of the bullet folder produced the same result:

Code: Select all

sudo make install
Upon inclusion into a simple program:

Code: Select all

#include <bullet/btBulletDynamicsCommon.h>

int main(int argc, char* argv[]) {
	return 0;
}
Compilation in g++ puts out:

Code: Select all

daniel@daniel-OEM:~/Desktop/Link to projects/test$ make
g++ -Wall -O2 -c main.cpp -o main.o
In file included from /usr/local/include/bullet/btBulletCollisionCommon.h:22,
                 from /usr/local/include/bullet/btBulletDynamicsCommon.h:20,
                 from main.cpp:1:
/usr/local/include/bullet/BulletCollision/CollisionDispatch/btCollisionWorld.h:74: fatal error: LinearMath/btVector3.h: No such file or directory
compilation terminated.
make: *** [main.o] Error 1
Upon (double) checking line 74 in BulletCollision/CollisionDispatch/btCollisionWorld.h

Code: Select all

#include "LinearMath/btVector3.h"
Which obviously couldn't work because its not checking inside of bullet/..
So how was this supposed to be usable? Or have I done something tragic...

--- edit

For now I have moved the bullet folder so /usr/local/include# ls -a looks like

Code: Select all

.                          Bullet-C-Api.h       BulletSoftBody
..                         BulletCollision      LinearMath
btBulletCollisionCommon.h  BulletDynamics       MiniCL
btBulletDynamicsCommon.h   BulletMultiThreaded
But that just looks like a tragedy waiting to happen.
Last edited by Rommel on Sat Jan 22, 2011 1:45 pm, edited 2 times in total.