| Software | Version | Size, MB | Source | Description |
|---|---|---|---|---|
| 2.2.4 | ~35 | http://www.freepascal.org | Download the latest stable Freepascal compiler. | |
(Full Installer!) | 1.0 Final RC2 | ~5 | Main site:http://jedi-sdl.pascalgamedevelopment.com/ Downloads:http://sourceforge.net/forum/forum.php?forum_id=724777 | Download the latest version of JEDI-SDL package. |
| 1.2.13 | ~0.1 | http://www.libsdl.org (German readers may prefer: http://www.libsdl.de/) | Download the latest stable runtime library of SDL. |
| 1) Download the latest stable Freepascal compiler, version 2.2.4 or higher. |
| 2) Download the latest version of JEDI-SDL, version 1.0 Final or higher. Be sure it is the full installer (not headers only or demos only). |
| 3) Download the latest version of SDL runtime library, version 1.2.13 or higher. |
| 4) Execute "fpc-2.2.4.i386-win32.exe" to install Freepascal. Let the self-installer create a shortcut on your desktop. Don't modify any checked options during installation process. The default path is: 'C:\FPC\2.2.4\'. |
| 5) Extract "SDL-1.2.13-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) Execute the "JEDI-SDLFullSetup.exe" and follow the installer's instructions. Since you should avoid a folder name like "JEDI-SDL Full" which is suggested by the install program when asking for the install path, I suggest as full path: "C:\FPC\2.2.4\units\JEDI\". All later tutorials will assume you installed to this path. |
| 8) Open the Freepascal IDE (for example by clicking the shortcut on desktop). |
| 9) In the menue choose the following item "Options". From "Options" choose "Directories...". Now a window should pop up. |
|
10) The first tab whitin this new window is called "Units". Here you add the full path to your SDL-units (e.g. C:\FPC\2.2.0\units\JEDI\SDL\Pas) below the other pathes. Leave the last backslash out. Make sure the path leads to the folder, where the sdl.pas file is located! This file contains all the basic features of SDL. The picture doesn't show the correct path! It is old. We use "C:\FPC\2.2.4\units\JEDI\SDL\Pas" instead. Confirm by clicking "OK". |
| 11) To check if you installed your system successfully download the file demo02.pp (right click and "save as") into demo-folder (C:\FPC\2.2.4\demo\) or anywhere else. |
| 12) Open this file and run it. |
| VERY IMPORTANT Since most users will not install FPC/SDL manually I removed the information about setting up the unit pathes in the compiler settings part of each individual chapter. However for you, without setting the unit pathes in your IDE you will get errors. Next is a list of the settings for each chapter where necessary IF you do the manual installation. |
|---|
| Chapter 3a | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
1) Make sure your compiler finds the new unit. (IDE: Options --> Directories... --> Units) 2) Copy the file "jedi-sdl.inc" from the "../SDL/Pas"-folder into the "../SDL_image/Pas/"-folder. Both folders are located in the JEDI-SDL project folder (e.g. C:\FPC\2.2.4\units\JEDI\). If you forget this you will get an error on compiling saying SDL_IMAGE is not finding jedi-sdl.inc. 3) You need this .dll file:
| ||||||||||||||||
Chapter 5 | ||||||||||||||||
|
1) Make sure your compiler finds the new unit. (IDE: Options --> Directories... --> Units) 2) Copy the file "jedi-sdl.inc" from the "../SDL/Pas"-folder into the "../SDL_tff/Pas/"-folder. Both folders are located in the JEDI-SDL project folder (e.g. C:\FPC\2.0.4\units\JEDI\). If you forget this you will get an error on compiling saying SDL_TFF is not finding jedi-sdl.inc. 3) You need this .dll file:
| ||||||||||||||||
Chapter 7 | ||||||||||||||||
|
1) Make sure your compiler finds the new units. (IDE: Options --> Directories... --> Units) For the usage of SDL_MIXER you have to include both, the SDL_MIXER itself and the SMPEG unit (which is used by SDL_MIXER unit). The SMPEG unit actually is only used for mp3 support but your programs will fail to run even if you don't use mp3 files. 2) Copy the file "jedi-sdl.inc" from the "../SDL/Pas"-folder into the "../SDL_Mixer/Pas/"-folder and "../smpeg/Pas/"-folder. All folders are located in the JEDI-SDL project folder (e.g. C:\FPC\2.0.4\units\JEDI-SDLv1.0\). If you forget this you will get an error on compiling saying SDL_Mixer or smpeg is not finding jedi-sdl.inc. 3) You need this .dll file and a music and sound file:
| ||||||||||||||||
Chapter 8 | ||||||||||||||||
1) Make sure your compiler finds the new units. (IDE: Options --> Directories... --> Units) You will need to add the path to the OpenGL units GL and GLU. GL provides the whole basic OpenGL functionality and GLU (OpenGL Utilities) provides some additional functions which are very useful but not provided as basic functions of OpenGL (version 1.1). ![]() 2) Copy the file "jedi-sdl.inc" from the "../SDL/Pas"-folder into the "../OpenGL/Pas/"-folder. All folders are located in the JEDI-SDL project folder (e.g. C:\FPC\2.2.4\units\JEDI\). If you forget this you will get an error on compiling saying GL or GLU is not finding jedi-sdl.inc. 3) You need this software:
|