- C/C++ build tools (
gcc
orclang
,make
) - autotools package (
autoconf
,automake
,autoheader
,autom4te
...) - system for managing library compiler/linker flags (
pkg-config
) - SDL - Simple DirectMedia Library (
libSDL: "2.0.x"
)
-
Linux distro based on Ubuntu (or another Debian-like)
sudo apt-get install build-essential autoconf autotools-dev pkg-config libsdl2-dev
-
Linux distro based on Fedora (or another RedHat-like)
sudo dnf install gcc make autoconf automake pkgconfig SDL2-devel
(in older distros there wasyum
package manager instead ofdnf
)
-
MacOS (tested on 10.12+)
- first, "Xcode Command Line Tools" is required (for
clang
&make
) - in addition to that you will need install tools & libs via MacPorts:
sudo port install autoconf automake pkgconfig libsdl2
, or with Brew:brew install autoconf automake pkg-config sdl2
- tested on Apple Silicon M1 and latest MacOS 11.0+
- first, "Xcode Command Line Tools" is required (for
- generate configuration scripts with
autoreconf -vfi
- run script
./configure
(for all available options/switches type./configure --help
) - then
make
to build - (optional) install to the system directories with
sudo make install