Box2D Forums

It is currently Wed May 22, 2013 2:30 pm

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Box2D for NDS
PostPosted: Thu Apr 09, 2009 11:49 am 
Offline

Joined: Thu Apr 09, 2009 11:39 am
Posts: 3
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


Top
 Profile  
 
 Post subject: Re: Box2D for NDS
PostPosted: Thu Apr 09, 2009 3:03 pm 
Offline

Joined: Mon Jan 07, 2008 10:51 am
Posts: 1911
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.


Top
 Profile  
 
 Post subject: Re: Box2D for NDS
PostPosted: Fri Apr 10, 2009 10:38 am 
Offline

Joined: Thu Apr 09, 2009 11:39 am
Posts: 3
Sorry :oops:

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


Top
 Profile  
 
 Post subject: Re: Box2D for NDS
PostPosted: Fri Apr 10, 2009 1:21 pm 
Offline

Joined: Mon Jan 07, 2008 10:51 am
Posts: 1911
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.


Top
 Profile  
 
 Post subject: Re: Box2D for NDS
PostPosted: Thu Apr 16, 2009 12:08 pm 
Offline

Joined: Thu Apr 09, 2009 11:39 am
Posts: 3
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)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: Google [Bot] and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group