- Install Free Pascal Compiler Ubuntu Free
- Install Free Pascal Compiler Ubuntu Windows 10
- Install Intel Fortran Compiler Ubuntu
Last updated on July 22nd, 2020
Free Pascal and the Lazarus IDE are not available in the Ubuntu Software application, but version 3.0.4 of the compiler and version 1.8.2 of the IDE can be installed with synaptic (or apt-get ). However, these are not the most recent versions. Currently, version 3.3.1 of the compiler and 2.1.0 of the IDE are available. 4.1 on 28 votes. Turbo Pascal is a compiler and an integrated development environment (IDE) for the Pascal language that run on MS-DOS operating system. Turbo Pascal is a. Environment ( IDE) for the Pascal language.
What is covered, what not?
- installation guide for SDL 2.0 under Microsoft Windows
- installation of Free Pascal Compiler (FPC)
- installation of Free Pascal IDE and Lazarus IDE
- installation of SDL 2.0
- configuration of FP IDE and Lazarus IDE to work with SDL 2.0
- after this you are ready to code awesome SDL 2.0 stuff ?
Free Pascal IDE or Lazarus IDE
IDE stands for integrated development environment. Although you could write your programs in a simple text editor, an IDE makes your life much easier. For example, it highlights keywords, makes it easier for you to set up the compiler, and much more. Now let’s have a look at these two IDEs:
You may notice that the native Free Pascal IDE (left) looks old, but it is shipped right along with the Free Pascal Compiler. In contrast to that the Lazarus IDE (right) looks up-to-date, but requires it to be installed additionally. My advise is nonetheless, use the Lazarus IDE.
The Free Pascal Compiler (FPC)
We need three different software packages. First of all we need the stand-alone Free Pascal Compiler or Lazaruse IDE (which already has a copy of the Free Pascal Compiler included). If you are not sure, I recommend to go with the Lazarus IDE package.
SDL Library and SDL 2.0 units
Additionaly we need the original SDL library files (.dll files). And finally we need units that connect our SDL 2.0 code written in Free Pascal to the SDL library files. The latter will be done by SDL 2.0 units.
This table provides all information and sources you need with respect to installation steps 1) – 3). Keep in mind, you have to download either the Lazarus IDE or the stand-alone Free Pascal Compiler, not both.
Software, Version, approx. Size [MB] | Filenames, Source link | Details and remarks |
---|---|---|
Lazarus IDE (has FPC included) 1.4.4 or later N/A | lazarus-1.4.4-fpc-2.6.4-win32.exe http://www.lazarus-ide.org/index.php?page=downloads | Linux and Mac OS X versions are here: http://www.lazarus-ide.org (see Downloads). |
Free Pascal Compiler (stand-alone) 3.0.0 or later 22-40 | fpc-3.0.0.i386-win32.exe Windows 32 bit version fpc-3.0.0.i386-win32.cross.x86_64-win64.exe Windows 64 bit version (needs 32 bit version) | If you need the Linux, Mac OS X or other versions, check them out here: http://www.FreePascal.org (see Download). |
SDL 2.0 units 1.72* (see remark) 0.1 | Pascal-SDL2-for-Pascal-master.zip https://github.com/PascalGameDevelopment/SDL2-for-Pascal | On the right upper side is a button saying Download ZIP. Click on this button for the download of the latest release. *Better go with the latest availabe version (not version 1.72!) since some important bugfixes have been made lately. |
SDL 2.0 dynamic link library 2.0.4 0.35 | SDL2-2.0.4-win32-x86.zip SDL2-2.0.4-win32-x64.zip http://www.libsdl.org | SDL 2.0 > Download > Choose the download suitable for your system. |
Download Lazarus or the stand-alone Free Pascal Compiler (FPC)
If you have Free Pascal or the Lazarus IDE installed already, you can skip the steps 1a) and 1b).
1a)For Lazarus IDE: Download the latest version of the Lazarus IDE. It has the Free Pascal Compiler accompanied. Remark: As of today (12/02/2016) the bundle doesn’t provide the most recent Free Pascal Compiler (3.0.0) but the version before (2.6.4). The tutorial examples will work with both versions though.
1b) For Free Pascal IDE: 32 bit Windows: Download the latest stable Free Pascal compiler, version 3.0.0 or higher. 64 bit Windows: You have two choices, 1) Simple way: Go with the 32 bit version of Free Pascal. (Recommended), 2) Install the 64 bit version of Free Pascal on top of the 32 bit version of Free Pascal. In this case you need both files. Hence, you need to download both Free Pascal installers shown above.
Download SDL 2.0 and Header translation
2) Download the latest version of Tim Blume’s SDL 2.0 units, better go with the latest branch (master branch), and do not use version 1.72 since it contains some bugs. Click on “Clone or download” and then on “Download ZIP” (see arrows in image below) of the page and make sure that Branch: master (not v1.72!) is chosen at the left side (see arrow in image below). This is important for any operating system: Windows, Linux, Mac OS X.
3) Download the latest version of SDL 2.0 runtime library, version 2.0.4 or higher.
Install Lazarus or the Free Pascal Compiler
4a) For Lazarus: 32 and 64 bit Windows: Execute lazarus-1.4.4-fpc-2.6.4-win32.exe to install Lazarus for a 32 bit or 64 bit Windows system and follow the self-installer. Let the self-installer create a shortcut on your desktop.
4b) For Free Pascal IDE:32 and 64 bit Windows: Execute fpc-2.6.4.i386-win32.exe to install Free Pascal for a 32 bit or 64 bit Windows system. 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[Compiler version]. [Compiler version] should be 3.0.0 or higher numbers. 64 bit Windows only: After you installed the 32 bit Free Pascal, you may execute fpc-3.0.0.i386-win32.cross.x86_64-win64.exe optionally to add the 64 bit version on top.
Install SDL 2.0 and Header translation
5) Extract SDL2-2.0.4-win32-x86.zip or SDL2-2.0.4-win32-x64.zip to get the SDL runtime library. This leads to two extracted files. There is a text file and the very important SDL2.dll.
https://hunttree282.weebly.com/does-pc-richards-have-free-installation.html. Windows 10 free upgrade then clean install. 6) 32bit Windows: Copy those files (especially the SDL2.dll!) to your system32-folder, C:WINDOWSsystem32. 64bit Windows: Copy those 64bit files to your system32-folder (!), C:WINDOWSsystem32, Windows is expecting you to do this. Do not use the SysWoW64-folder (Hint: 32 bit files on 64 bit Windows go here).
If it is not possible to copy the files into this folder (or you are unsure about its location) alternativly you can copy the SDL2.dll right into the same folder where the SDL 2.0 application (.exe) is located. That is because SDL 2.0 first looks for the SDL2.dll in the folder from which it is executed and if it isn’t found there, in the corresponding system folder! Anyway, if it isn’t found anywhere, the program will raise an error.
![Install Free Pascal Compiler Ubuntu Install Free Pascal Compiler Ubuntu](https://fabriciounix.com.br/img/img/atom.png)
Now you have installed Free Pascal and the SDL runtime library on your system. Finally SDL 2.0 units have to be installed.
7a) For Lazarus IDE: Extract the SDL2-for-Pascal-master.zip. The Free Pascal Compiler is located in a subfolder called “fpc”. I suggest to copy all the files to a folder with full path C:Lazarusfpc[Compiler Version]unitsSDL2. [Compiler version] should be 2.6.4 or higher numbers. Skip step 7b).
7b) For Free Pascal IDE: Extract the SDL2-for-Pascal-master.zip. I suggest to copy all the files to a folder with full path C:FPC[Compiler Version]unitsSDL2. [Compiler version] should be 3.0.0 or higher numbers. All later chapters will assume you installed to this path.
Configuring the Lazarus IDE
Now the compiler has to be told where to find the new units.
8) Open the Free Pascal IDE (for example by clicking the shortcut on desktop).
9) In Lazarus the path to external units has to be set for each project. Create a project if no project is set up (Project > New Project …). In the menue choose the following item Project > Project Options …. Now a window should pop up.
10) Under “Compiler Options” choose “Paths” (see red mark). Choose the three dots button (see red mark on the right side) for the “Other units files (-Fu)” field (red mark). This makes the “Path Editor” pop up. In the area “Search paths:”, click on the yellow folder symbol in the right bottom corner. Choose the path to your SDL-units (e.g. C:Lazarus2.6.4unitsSDL2). Make sure the path leads to the folder, where the sdl2.pas file is located! This file contains all the basic features of SDL 2.0.
Confirm by clicking “OK” until all windows are closed. Your Lazarus IDE is now set up for SDL 2.0 application development :-)!
Configuring the Free Pascal IDE (skip if you use Lazarus)
Now the compiler has to be told where to find the new units.
8) Open the Free Pascal IDE (for example by clicking the shortcut on desktop).
9) In the menue choose the following item Options > 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:FPC3.0.0unitsSDL2) right below the other paths. Leave the last backslash out. Make sure the path leads to the folder, where the sdl2.pas file is located! This file contains all the basic features of SDL 2.0.
Confirm by clicking “OK”.
Finally
Congratulations! You have configured your system for developing SDL 2.0 applications with the Lazarus IDE or the Free Pascal IDE! Simple, isn’t it? ?
For those of you who try running a program and get an abortion together
with a messege saying “exitcode = 309”: You skipped step 6! Did you copy
the SDL2.dll to your system32- or system-folder respectively? If so and the
error still occurs you should copy the SDL2.dll into the folder
where the programs are placed. Now it should work.
with a messege saying “exitcode = 309”: You skipped step 6! Did you copy
the SDL2.dll to your system32- or system-folder respectively? If so and the
error still occurs you should copy the SDL2.dll into the folder
where the programs are placed. Now it should work.
← Chapter 1 | Chapter 3 →
The latest release version is 3.2.2.It is available in different formats:
Download in 1 big file:
- fpc-3.2.2.i386-linux.tar (82 MB) contains a standard tar archive, with an install script. After untarring the archive into a temporary location, you can run the install script by issuing the command 'sh install.sh'.
- fpc-3.2.2.i386-linux.cross.i8086-msdos.tar.xz (160 MB) contains tar file with the Linux/i386 to MS-DOS (real mode, i8086) cross-compiler only. You can install it like the main package.
- fpc-3.2.2.i386-linux.cross.x86_64-linux.tar (104 MB) contains tar file with the Linux/i386 to x86_64-linux cross-compiler only. You can install it like the main package.
RPM (Redhat Package Manager) Packages:
Our RPM packages are compatible with all RPM based distributions, including Red Hat, Fedora, SuSE, Mandriva.Install Free Pascal Compiler Ubuntu Free
- Binary Packages
- fpc-3.2.2-1.i686.rpm (44 MB) contains the compiler, utils, RTL and all units.
- Source Packages
- fpc-3.2.2-1.src.rpm (53 MB) contains the sources.
- i8086 MS-DOS cross binary Packages
- fpc-i8086-msdos-3.2.2i-1.i686.rpm (176 MB) contains the cross-compiler, RTL and all units for MS-DOS target.
- Source Packages for cross i8086 compilers.
- fpc-i8086-msdos-3.2.2-1.src.rpm (76 MB) contains the sources for MS-DOS target.
Debian Packages:
Our DEB packages are compatible with all DEB based distributions, including Debian, Linspire, Ubuntu.Install Free Pascal Compiler Ubuntu Windows 10
- Deb archives for 3.2.2 are not available from us. Please refer to the official Debian experimental repository instead.
Install Intel Fortran Compiler Ubuntu
Back to mirror list
Back to general download page
Back to general download page