LinearMath include files

taz
Posts: 3
Joined: Tue Jan 12, 2010 1:20 am

LinearMath include files

Post by taz »

Hi,

I'm new to bullet, so apologies if this has topic has been treated somewhere else.

When recompiling LinearMath, I've noticed some files do this:

Code: Select all

#include "btVector3.h"
but other files do this instead:

Code: Select all

#include "LinearMath/btVector3.h"
I'm using my own makefiles (on a linux machine), and the compiler fails because some files are doing #include "LinearMath/...". If I remove the "LinearMath/" part, everything compiles ok. The files with this issue are: btQuickprof.h, btQuickprof.cpp, btConvexHull.h and btConvexHull.cpp.

Is there any reason to include the header files with "LinearMath/"?

Cheers,

Taz

PS By the way, you guys have done a great work!
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Re: LinearMath include files

Post by Erwin Coumans »

Did you include the 'src' folder as include? Aside from the LinearMath, also BulletCollision and BulletDynamics etc also require this relative path.

Thanks,
Erwin
taz
Posts: 3
Joined: Tue Jan 12, 2010 1:20 am

Re: LinearMath include files

Post by taz »

Hi Erwin,

Thanks for your prompt reply!

To compile other components of the bullet library, I do include the 'src' folder as include. But to compile the LinearMath library itself, I don't include the src folder because it seems to be self-contained.

I understand that BulletCollision, BulletDynamic, etc require a relative path to LinearMath, but LinearMath source files don't use this relative path, except for the four files I mentioned. Removing the relative path in those four files makes the makefile very simple (no need to add any other folder to include, everything is in the same directory).

Cheers,

Taz
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Re: LinearMath include files

Post by Erwin Coumans »

If you really want this, can you create a patch using the latest SVN trunk (with as few changes as necessary) and commit it to the issue tracker?

Thanks,
Erwin
taz
Posts: 3
Joined: Tue Jan 12, 2010 1:20 am

Re: LinearMath include files

Post by taz »