| 1) Download the latest stable Freepascal compiler (Version 2.0.0). You get it here: http://www.freepascal.org/ |
| 2) Download the latest version of SDL4Freepascal (Version 1.2.0.0). You get it here: http://sdl4fp.sourceforge.net/ |
| 3) Download the latest version of SDL runtime library (Version 1.2.8). You get it here: http://www.libsdl.org/ (German readers may prefer: http://www.libsdl.de/) |
| 4) Execute "fpc-2.0.0.i386-win32.exe" to install Freepascal. Let the self-installer create a shortcut on your desktop. |
| 5) Extract "SDL-1.2.8-win32.zip" to get the SDL runtime library. This leads to two extracted files. There is a text file and the very important SDL.dll. |
| 6) Copy those files (especially the SDL.dll!) to your system32-folder! Usually you find it at "C:\WINDOWS\system32\". Don't confuse it with the similar system-folder. (This works for WinXP, probably for NT-series and Win2000 as well; if you use Win9x or WinME you should copy it to system-folder instead of system32-folder) |
| 7) Extract "SDL4Freepascal-1.2.0.0.tar.gz" to get the units and some demo programs. There should be about 20 files and a folder "demos" which contains five more files. |
| 8) Open the folder where you have installed Freepascal (e.g. C:\FPC\) |
| 9) Open the folder "units" (e.g. C:\FPC\units\) |
| 10) Create a new folder called "sdl" (e.g. C:\FPC\units\sdl\) |
| 11) Copy the whole former extracted files (including the folder "demos") from SDL4Freepascal into the sdl-Folder. |
| 12) Open the Freepascal IDE (for example by clicking the shortcut on desktop). |
| 13) In the menue choose the following item "Options". From "Options" choose "Directories...". Now a window should pop up. |
| 14) The last row is called "Unit directories". There you should write in the full path to your SDL-units (e.g. C:\FPC\units\sdl). Leave the last backslash out. |
| 15) Open the file "demo02.pp" in demos-folder (e.g. C:\FPC\units\sdl\demos\). Run it. |