SDL3 Install Chapter Feature Image

Installation of SDL3 (Linux and Windows)


Step 1: Get the SDL3 Library to your system

Step 2: Install SDL3

Windows

For Windows it is as easy as copying the SDL3.dll to your system or system32 folder (try it out). Alternatively you can also just copy the SDL3.dll in the same folder as your SDL3 application resides.

Linux

As SDL3 is very new, it has not been entered the package managers of the Linux distributions yet. This means, you need to compile and install it manually.

For a detailed description on how to compile or build and install SDL3 under Linux, please check this out: How to Compile and Install SDL3 in Linux.

Step 3: Get the SDL3 unit for Pascal

Step 4: Setup Lazarus Project

If you use the Lazarus IDE for development, do not forget to set the following paths:

In the “Paths” sub-options menu of the “Compiler Options”, you need to set the path in “Other unit files (-Fu)” to the SDL3 units. The setting (“units”) as displayed in the screenshot means that the SDL3 unit files are in a “units” subfolder of your application folder.

For other editors you need to set them accordingly. If you compile from command line, use the compiler flags.

If your SDL3 shared library files are not recognized system wide you may have copied the DLL files to the wrong system folder on Windows. In Linux the way to achieve this is described in the mentioned article.

That’s it, you should be able to run SDL3 applications done in Pascal now. 🙂

Next Chapter

Leave a Reply

Your email address will not be published. Required fields are marked *