Box2D under ubuntu 9.10

BlitzMax Forums/Brucey's Modules/Box2D under ubuntu 9.10

Angus(Posted 2009) [#1]
I've upgraded to 9.10 and am having a problem building the box2D module!

I get the error:

" conflicting declaration 'BBObject *joint' "

in line 227 of 'glue.cpp'

Installing BMax to 9.10 did involve some changes to other source files, I followed the instructions in the Linux Sub-Forum to get it to work. Is this related to my problem with Box2D?

Any advice greatly appreciated as cpp code is a mystery to me.


Brucey(Posted 2009) [#2]
Hi.

My version of the box2d module has this at line 227 :
	void bmx_b2shape_setrestitution(b2Shape * shape, float32 restitution);


What version are you using? 1.03 ?

I should probably do a release, as I believe that the current version in SVN should be okay to build against the latest GCC.


Angus(Posted 2009) [#3]
Yeah, I'm using 1.03...

glue.cpp reads:

void bmx_b2joint_attachobject(b2Joint * joint, BBObject *joint);

at line 227. I just downloaded what I saw on googlecode.

Thanks for the module, by the way. I've been having fun with it.


Brucey(Posted 2009) [#4]
I've just released 1.04, which should (hopefully) solve your build issues.

Summary of changes since 1.03 :
* Updated to box2d svn (rev 207)
* Added b2LineJoint type.
* Added b2ShapeDef.SetUserData() method.
* Added b2Mat22.GetAngle() method.
* Added b2Mat22 Create... methods, and others.
* Added shape SetFriction() and SetRestitution() methods.
* Fixed contact filter example and docs.
* Added b2EdgeShape type.
* Added staticedges, dynamicedges, pyramidstaticedges and buoyancy examples.
* Added buoyancy types + methods.
* Added b2Body SetMass() method.
* Added b2BodyDef GetMassData() method.
* Converted bool handling in glue to use ints instead.


There's lots of cool new stuff there, and a few more examples.

Have fun :-)


Angus(Posted 2009) [#5]
That works now, thanks! And thanks for the update in general.

Feels like I have a fully-functioning linux machine now :)