[<-back]
Here are the procedures to install SDL2 on various systems.
> sudo apt install libsdl2-dev libsdl2-doc libsdl2-gfx-dev
> sudo apt install libsdl2-image-dev libsdl2-ttf-dev libsdl2-mixer-dev libsdl2-net-dev
> sudo pacman -S sdl2 sdl2_gfx
> sudo pacman -S sdl2_image sdl2_ttf sdl2_mixer sdl2_net
-
Get the sources (tar.gz) from the official SDL site.
-
Extract the archive and cd to the folder that got extracted.
> cd Download
> tar -xpvf ./SDL2-2.0.14.tar.gz
- Configure the installation using
> ./configure
- Compile the source using the make command
> make all
- Finally, install the package using the make command
> sudo make install
Note: If you do a manual install you may have to specify where the headers and library files are for your compiler/IDE.
Now that you've installed the development libraries, it's time to start up your IDE/compiler.
[<-back]