PDA

View Full Version : Current status of SDL port



m4c0
January 6th, 2009, 11:17
What is the current status of NDS port of libSDL? Is it active? How can I contribute?

Sektor
January 7th, 2009, 14:29
You'll need to comment out a couple of lines (I think powerON, consoleInit and irqInit) to get NDS SDL 1.2.9 to compile on devkitARM_r24 and the sound support will probably be broken but I haven't tested it.

SDL 1.3 looks interesting (http://code.google.com/soc/2008/sdl/appinfo.html?csaid=F0B9B0518AFD5C03). Darren Alton worked on the DS port of that. I don't think he has made any updates since August 2008. I'm not really sure where to download Darren's latest code, some of it seems to be on http://www.libsdl.org but there were many errors when I tried compiling that version. There's a DIFF here (http://code.google.com/p/google-summer-of-code-2008-sdl/downloads/list). I think that diff has already been applied to 1.3 downloadable from libsdl.org.

some 1.3 error's when compiling with devkitARM_r24 and libnds-1.3.1:
src/video/nds/SDL_ndsrender.c:42: error: expected ')' before '*' token
src/video/nds/SDL_ndsrender.c: In function 'NDS_OAM_RotateSprite':
src/video/nds/SDL_ndsrender.c:52: error: 'SIN' undeclared (first use in this function)
src/video/nds/SDL_ndsrender.c:52: error: (Each undeclared identifier is reported only once
src/video/nds/SDL_ndsrender.c:52: error: for each function it appears in.)
src/video/nds/SDL_ndsrender.c:53: error: 'COS' undeclared (first use in this function)

Best to stick with 1.2.x unless you feel like doing a lot of work.