Box2D Nintendo DS

dinedal wrote:

Can't you just wrap the include in a namespace?


Not really since libnds defines the types slightly different than Box2D. What I did for now was renaming Box2D's float32 to b2float32 (quick and dirty but works).
I know this is cheeky but can someone send me the nds modified code? I can't get the svn patch to work and when I try to modify the code manually I am getting so many compiler warnings.... getting very annoyed.... anyone got 5 mins free to zip and send?

Thanks.....
I've just noticed that with some modification the most recent Box2D Lite demo runs just fine on Nintendo DS. I'll try to get something more in-depth up and running over the weekend.
Is a new patch needed for running 2.1.2 on nds?

I am still having problems compiling/running on DS.
Hey guys. I've got my game written in C++ and I would like to make it work on Nintendo DS. I would like to know the fastest way of making that possible.

I'm working on Box2D v.2.1.2 and I've joined it to my custom-made DS game engine. I already know that in this version of Box2D DS is supported - I just don't know how to enable it. Is there any way of just replacing the source files of Box2D so I won't need to change anything in my code? Or what should I add to my makefile to make it compile the code for DS and not for PC? Or maybe it's just the matter of adding few lines in my main.cpp?

Thanks for any help,
h3
here is a lite version on nds....

http://www.mediafire.com/?seoe36xvtksd382

but I am having memory allocation issues with the full version.... if anyone has a nice hello world for nds they can send me I would be most grateful.....

Thanks.
I also adore Box2D on DS. Have just started but already feel like prof!
Greg

Original thread: https://box2d.org/forum/viewtopic.php?t=124