You may try this website: http://www.freepascal-meets-sdl.net, the first chapter considers the set-up of SDL.