The Allegro Wiki is undergoing maintenance, please be patient.
Install Allegro5 From Git/Linux/Centos
From Allegro Wiki
We assume that you've set up a basic build environment.
Install core dependencies:
sudo yum install cmake libX11-devel mesa-libGLU-devel libXcursor-devel libXi-devel
Install stable addon dependencies (these are all optional, but highly recommended):
sudo yum install freetype-devel libpng-devel libvorbis-devel libogg-devel libjpeg-turbo-devel pulseaudio-libs-devel gtk2-devel flac-devel
Install unstable addon dependencies (these are optional):
sudo yum install libtheora-devel
- Install the remaining dependencies manually (optional):
Downloading and compiling
Check out Allegro5 from git:
git clone https://github.com/liballeg/allegro5.git
Optional: By default, this will check out the latest, wip branch. To select the stable branch, do this:
git checkout 5.0
Make a build directory, configure, compile and install:
mkdir build cd build cmake .. make -j2 # replace '2' by the number of your CPU cores sudo make -j2 install
You're all set!