OK, so I installed the getdeb bullet package (2.77-1~getdeb1), but SCons is failing when checking for the btCollisionCommon.h header. Here's what my config.log looks like:
Code:
scons: Configure: Checking for C++ header file bullet/btBulletCollisionCommon.h...
.sconf_temp/conftest_10.cpp <-
|
|#include "bullet/btBulletCollisionCommon.h"
|
|
CPP .sconf_temp/conftest_10.o
In file included from /usr/include/bullet/btBulletCollisionCommon.h:22:0,
from .sconf_temp/conftest_10.cpp:2:
/usr/include/bullet/BulletCollision/CollisionDispatch/btCollisionWorld.h:74:34: fatal error: LinearMath/btVector3.h: No such file or directory
compilation terminated.
scons: Configure: no
It looks to me like /usr/include/bullet needs to be added as an include path.
Code:
joe@joe02:~/code/VDrift$ pkg-config bullet --libs --cflags
-I/usr/include/bullet -lBulletSoftBody -lBulletDynamics -lBulletCollision -lLinearMath
In src/SConscript we have a line:
Code:
local_env.ParseConfig('pkg-config bullet --libs --cflags')
The conf.CheckCXXHeader(header) stuff happens in SConstruct with an environment that doesn't have the bullet paths pulled in yet. If I move the ParseConfig into SConstruct just before the check_headers stuff, everything works for me. I'm not sure how well that will work for other systems, in particular Windows msys builds, but it seems like the best way to build on windows these days is with code blocks anyway.
I went ahead and pushed that change:
https://github.com/VDrift/vdrift/commit/...cb2ca31d8f
My first github commit!
Let me know if that breaks stuff for anyone.