Quote Originally Posted by Legolas

Here is a quick list of changes I made in order to compile it:

:arrow: NDS needs "uses types;" only
:arrow: libSDL.a depends from libnds9.a and some other gcc libs:
[pascal]{$IFDEF NDS}
SDLLibName = 'libSDL.a';
{$]
:arrow: I have commented out all SDL_mutex and thread parts
:arrow: All external funcs are declared as:
[pascal]
function SDL_Init( flags : UInt32 ) : Integer;
cdecl; external {$IFNDEF NDS}{$IFDEF __GPC__}name 'SDL_Init'{$ELSE} SDLLibName{$ENDIF __GPC__}{$ENDIF NDS};
[/pascal]

That's all
As I said, it compiles fine but I dont' know if it works too
I'm making changed to the sdl.pas for JEDI-SDL to see if I can make is conpile out of the box for the ds.

I have made all of the changes you specified with the exception of defining PSDL_mutex as it is defined in the source code.

But I get

Code:
  sdl.pas (4207,4) Error : Creation of Dynamic/Shared Libraries not supported
Any ideas?