Chinamming / bullet

Automatically exported from code.google.com/p/bullet
Other
0 stars 0 forks source link

Build errors with -DUSE_DOUBLE_PRECISION=ON since r2675 #744

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. build the trunk with -DUSE_DOUBLE_PRECISION=ON
2. compilation will fail due to float variables in 

src/BulletDynamics/Featherstone/btMultiBodyConstraintSolver.cpp:279:10: error: cannot initialize a variable of type 'float ' with an rvalue of type 'double *' float jac1=&m_data.m_jacobians[solverConstraint.mjacAindex]; ^ ~~~~~~~~~~~~~ src/BulletDynamics/Featherstone/btMultiBodyConstraintSolver.cpp:281:10: error: cannot initialize a variable of type 'float ' with an rvalue of type 'double *' float_ delta = &m_data.m_deltaVelocitiesUnitImpulse[solverConstraint.m_jacAindex]; ^ ~~~~~~~~~~~~~~

What version of the product are you using? On what operating system?
Mac OS X, Ubuntu

I'm working on a patch.

Original issue reported on code.google.com by scpet...@osrfoundation.org on 5 Oct 2013 at 7:42

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Here's a patch with several float's replaced with btScalar.

Original comment by scpet...@osrfoundation.org on 5 Oct 2013 at 8:08

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks for the patch, it is applied in svn trunk:
https://code.google.com/p/bullet/source/detail?r=2683

Original comment by erwin.coumans on 6 Oct 2013 at 5:13