awesome! can't wait for all those sdl ports for the ds.
here is the precompiled libs and header files and a couple of examples for using SDL on the DS.
http://gpf.dcemu.co.uk/files/nds/NDSSDLlibs.rar
http://gpf.dcemu.co.uk/files/nds/NDSSDLexamples.rar
The SDL port is based off of SDL 1.2.3 so some work is need to upgrade it to the latest version, still needs sound support and filesystem support.
Here is all the source code for each library. thanks to WntrMute on #dsdev for the source to libpng and zlib
http://gpf.dcemu.co.uk/files/nds/NDSSDL.rar
http://gpf.dcemu.co.uk/files/nds/NDSSDL_image.rar
http://gpf.dcemu.co.uk/files/nds/NDSlibpng-1.2.8.rar
http://gpf.dcemu.co.uk/files/nds/NDSjpeg-6b.rar
http://gpf.dcemu.co.uk/files/nds/NDSzlib-1.2.2.rar
http://gpf.dcemu.co.uk/files/nds/NDSSDL_mixer.rar
http://gpf.dcemu.co.uk/files/nds/NDSSDL_ttf.rar
http://gpf.dcemu.co.uk/files/nds/NDSfreetype.rar
http://gpf.dcemu.co.uk/files/nds/NDSSDL_flic.rar
http://gpf.dcemu.co.uk/files/nds/NDSSDL_gfx.rar
http://gpf.dcemu.co.uk/files/nds/NDSSFont.rar
also
here is a port of SDL for the gba and a couple of examples based off the .diff file found at
http://suse.osuosl.org/people/uli/SD....2.3-gba.patch
http://gpf.dcemu.co.uk/files/nds/gbaSDL.rar
awesome! can't wait for all those sdl ports for the ds.
Sorry about this newbie question but ¿where do i have to put SLDlib in order to be able to compile the examples?
I'm under linux and have set the enviroment variables for devkitarm, etc but I get "SDL.h no such file or directory".
My directory tree is ~\devkitpro\
PAlib
NDSSDLexamples
nds-examples
lSDL
libnds
libmirko
libgba
devkitARM
with lSDL containing headers and libraries.
Thanks in advance!
The makefiles are hardcoded to look for the header files
under devkitpro\libnds\include\SDL
with -D__NDS__ -I$(NDSLIB_INCLUDE)/SDL
some of the SDL libs require the -D__NDS__ define also
you can change the include line to point to where ever the include folder is located for your setup.
Troy
Many thanks GPF, I hope, xmas will bringme a NintendoDS.
I'm testing a few samples with devkirARM 17, and I'm getting some errors, what version of devkitARM do you recomends to me, in order to get better SDL suport?
Compilation errors solved, but I cant get working in 16 bbp, isnt still suported?
good question its been awhile since iv looked at my code
If you get it working or need to make changes to SDL to get something to work go ahead and send me the code and ill update the main libs for everyone.
Iv been extermely busy lately and havent been able to do much DS coding.
Troy(GPF)
cool, yeah it was a quick port and everything is using a mode6 background at 1024X512 or 512X512 , need to have it use different background modes based on the size of screen requested and doublebuffering needs to be implemented if I remember right. Sound code is nulled out and there is no filesystem access. And optimally someone could take my changes and upport to the latest SDL version
Troy(GPF)
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks