Bullet not compiling with -DBT_USE_DOUBLE_PRECISION

Post Reply
ola
Posts: 169
Joined: Sun Jan 14, 2007 7:56 pm
Location: Norway
Contact:

Bullet not compiling with -DBT_USE_DOUBLE_PRECISION

Post by ola »

Hi,

I use Bullet (svn version) with double precision (on Linux), by defining

Code: Select all

export CPPFLAGS=-DBT_USE_DOUBLE_PRECISION
Lately it won't compile anymore, the first error is this one:

Code: Select all

C++ ./out/linuxx86/optimize/src/BulletDynamics/ConstraintSolver/btHingeConstraint.o
src/BulletDynamics/ConstraintSolver/btHingeConstraint.cpp: In member function ‘virtual void btHingeConstraint::solveConstraint(btScalar)’:
src/BulletDynamics/ConstraintSolver/btHingeConstraint.cpp:348: error: no matching function for call to ‘btMax(btScalar, float)’
src/BulletDynamics/ConstraintSolver/btHingeConstraint.cpp:265: warning: unused variable ‘damping’
It compiles fine without the -DBT_USE_DOUBLE_PRECISION being set. I recon btMax is a rather new function?

Cheers,
Ola
thebolt
Posts: 6
Joined: Tue Jun 19, 2007 9:16 am
Location: Sweden

Post by thebolt »

I've submitted a patch to Erwin which fixes the problems building in double precision mode. Hopefully it gets applied as soon as he wakes up and gets to work etc :)

-M
ola
Posts: 169
Joined: Sun Jan 14, 2007 7:56 pm
Location: Norway
Contact:

Post by ola »

excellent! thank you :-)

Cheers
Ola
Post Reply