Box2D for NDS

Hello,

I am unable to build box2D 2.0.2 for nds (using TARGET_FLOAT32_IS_FIXED and TARGET_IS_NDS).
I retreived svn version and tried with ground 0 branch but it doesn t work.

Does anyone could share the lib ?

Thanks


PS :
I am on Vista with VC++ 2008 EE with devkitARM_r21
Please provided the actual build errors, your response is about as useful as telling a doctor you feel ill, and have a family history of diabetes.

That said, i think the problem is simply that the SVN is not currently in a buildable state for fixed, as it is missing a few simple functions. Lemme know, and I'll see what can be done.
Sorry 😳

I ll try to explain what append;
When I define TARGET_IS_NDS as preprocessor option, b2Settings includes jtypes.h file which asks for stdint.h
and from this point I dont know what to do.
I ve tried with the one gived with devkitpro and with another one i found on wiki (ISO C9x compliant stdint.h for Microsoft Visual Studio)
but both requieres other includes and each time i build the lib i have type conflics

for example :
_types.h(15) : error C2144: erreur de syntaxe : '__int64' doit être précédé de ';'
_types.h(15) : error C4430: spécificateur de type manquant - int est pris en compte par défaut. Remarque : C++ ne prend pas en charge int par défaut
_types.h(34) : error C2059: erreur de syntaxe : '__value'

where
_types.h(15) is : [ __extension__ typedef long long _off64_t; ]
and
_types.h(34) is : [ } __value; /* Value so far. */ ](in _mbstate_t struct def)

(sorry, errors are in french 🙁 )

I guess I have not the good files and i don't well understand these basics types definition to solve the problem myself.
If you succeed building the library, it will be kind to share the config you use !

Thanks
Those build issues don't sound like an issue, with the library, but with your setup. stdint.h is a standard way of proving fixed width types, necessary for the NDS setup. Visual Studio doesn't come with it, so you'll have to find your own and use it. Sounds like you are trying that, but it's not working. I'm afraid I cannot help further, but I would hazard a guess that it is treating the header as C++ rather than C. I'd look for instructions coming with the second stdint.h file - it is presumably a common thing to get it set up.
Thanks for you interest in my problem BorisTheBrave

I finally get it work using DevkitARM23b and building svn tagged Box2D-2.0.2 version
(just need to use precompilator options TARGET_IS_NDS ans FLOAT32_IS_FIXED
and libnds latest version patching some definitions in jtypes.h and fixed.h)

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