Or you can use my tutorial I have an article on installing Jedi-SDL with FreePascal on my forums...
http://pascalgamedevelopment.com/viewtopic.php?t=4552