Issues with compiling SVN 1655 on Linux

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

Issues with compiling SVN 1655 on Linux

Post by ola »

Hi, just found a couple of issues compiling SVN 1655 on Linux, gcc 4.3.3:

1.
src/BulletDynamics/ConstraintSolver/btHingeConstraint.h:130: error: default argument for parameter of type ‘btVector3&’ has type ‘btVector3’

The actual line is

Code: Select all

void	setAxis(btVector3& axisInA = btVector3(0, 1, 0))
Removing the & from btVector3& makes it work (or alternatively remove the default "= btVector3(0,1,0)")

2.
Demos/OpenGL/GLDebugFont.cpp:56: error: ‘strlen’ was not declared in this scope

Adding
#include <cstring>
at the top fixes this.

3.
Demos/Gpu2dDemo/btGpuDemoDynamicsWorld.h

at line 45 the
#include "btGpuDemo2DSharedTypes.h"
should be
#include "btGpuDemo2dSharedTypes.h"

(the 2D 'D' should be 'd')

4.
src/BulletMultiThreaded/btGpu3DGridBroadphase.cpp

also needs a
#include <cstring>
for memset.

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

Re: Issues with compiling SVN 1655 on Linux

Post by Erwin Coumans »

It should be fixed in the latest trunk, can you check it?

Thanks a lot for the report and fixes,
Erwin
ola
Posts: 169
Joined: Sun Jan 14, 2007 7:56 pm
Location: Norway

Re: Issues with compiling SVN 1655 on Linux

Post by ola »

Yes everything works fine now (rev. 1657) :-)

Best regards,
Ola