Compiling ndsrs (9)

1 Name: Anonymous : 2009-05-04 18:38 ID:tSJB+KmQ [Del]

Hi

Sorry this isn't really the place to talk about ndsrs but there doesn't seem to be any forum for it, so here I go.

I'm having some problems trying to compile ndsrs. I just did a fresh install of devkitpro, and I can compile vnds fine, but not ndsrs.

When I try "make", it complains about deprecated functions in the ARM7 code ('getIPC' is deprecated, error: too few arguments to function 'touchReadXY'...), so I tried to put just the ARM9 code within some example code bundled with devkitpro. Still some source files can't compile, I get errors like:
fileselect.cpp:17: error: aggregate 'stat st' has incomplete type and cannot be defined
fileselect.cpp:20: error: 'DIR_ITER' was not declared in this scope
...

I know almost nothing about DS programming so I'm probably doing things wrong.
Would you have any tips for compiling ndsrs?

Thanks

2 Name: Anonymous : 2009-05-04 19:05 ID:l6+/K0iL [Del]

>When I try "make", it complains about deprecated functions in the ARM7 code ('getIPC' is deprecated, error: too few arguments to function 'touchReadXY'...), so I tried to put just the ARM9 code within some example code bundled with devkitpro. Still some source files can't compile, I get errors like:

youre using libnds 1.3.2, which changed a lot of stuff. I have that fixed in a local copy that Ill upload eventually.

>fileselect.cpp:17: error: aggregate 'stat st' has incomplete type and cannot be defined
>fileselect.cpp:20: error: 'DIR_ITER' was not declared in this scope

I`m guessing a missing fat.h/libfat

3 Name: Anonymous : 2009-05-04 19:26 ID:l6+/K0iL [Del]

>upload eventually.

it seems eventually is today: http://www.digital-haze.net/files/ndsrs/ndsrs-2.2.1.tar.gz

4 Name: Anonymous : 2009-05-05 08:06 ID:tSJB+KmQ [Del]

Oh thanks!

No more errors with the ARM7 code.
However it seems that libpng and zlib are not included in devkitpro.
I tried to use a version I found here:
http://quirkysoft.googlecode.com/files/bunjalloo-deps-0.7.2.tar.gz

But it doesn't work:
linking ndsrs.arm9.elf
png.o: In function `PNGSaveImage(unsigned short*, int, int)':
png.cpp:173: undefined reference to `png_create_write_struct'
...

How could I fix this?
The ndsrs page provides freetype and expat libraries (they seem to work fine) but nothing for lipng or zlib.

Thanks.

6 Name: Anonymous : 2009-05-05 22:22 ID:tSJB+KmQ [Del]

Thank you very much! I eventually managed to compile it. :)

But I had to add a zconf.h that was missing in your zlib archive.

7 Name: Anonymous : 2009-05-05 22:58 ID:l6+/K0iL [Del]

so should I be expecting some patches?

8 Name: Anonymous : 2009-05-06 22:16 ID:tSJB+KmQ [Del]

Ah ah not really. ^^
I just wanted to try to customize some things and see what programming on NDS looked like.

Your soft is already really great, I could convert some Anki decks to study them on the NDS.

But if I can come to an interesting thing sure I will send you the patches.

9 Name: asaraf : 2009-08-02 06:47 ID:Lv2qO8Rg [Del]

greetings!
trying to build 2.2.1 with the latest devkitPro
it builds,
but freezes when run on the DS, after loading the initial file list and displaying it...

Anonymous, did you face this?

warm regards,
asaraf

Name: Link:
Leave these fields empty (spam trap):
More options...
Verification:
Image: