I'm trying to build bullet using the GNU mingw tool-set and it's presenting me with a rather time-consuming problem (which I fixed, but I thought I'd bring it to light int he hopes that it would be fixed in the main source so that I don't have to make the modification again when another version comes out).
Basically none of the include paths specified in header files (and quite a few of the .cpp files) work correctly when building with mingw, although they work fine on MSVC; this is because mingw handles paths differently than MSVC does. Fixing the include paths so that they work on mingw means that they still work on MSVC, but not vice versa.
Let's take a look at the file BulletCollision\BroadphaseCollision\btAxisSweep3.h . This file includes btPoint3.h, found in LinearMath, like so:
Code: Select all
#include "LinearMath/btPoint3.h"
For mingw to successfully find the include file, the include statement must look like this:
Code: Select all
#include "../../LinearMath/btPoint3.h"
Any chance of changing how include files are specified in the main trunk? The process could be done slowly, because MSVC will recognize relative paths and the way paths are specified now, so it's not like progress would have to be halted in order to make this change...if every developer just specified paths this way when they re-wrote a bit of code, then I think the change would be done fairly quickly with little effort
Thanks in advance...any comments are appreciated
-wyrmmage