The Allegro Wiki is migrating to github at

Install Allegro5 From Git/Linux/Centos

From Allegro Wiki
Jump to: navigation, search

We assume that you've set up a basic build environment.

Installing dependencies

  1. Install core dependencies:
    sudo yum install cmake libX11-devel mesa-libGLU-devel libXcursor-devel libXi-devel
  2. 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
  3. Install unstable addon dependencies (these are optional):
    sudo yum install libtheora-devel
  4. Install the remaining dependencies manually (optional):

Downloading and compiling

  1. Check out Allegro5 from git:
    git clone
  2. Optional: By default, this will check out the latest, wip branch. To select the stable branch, do this:
    git checkout 5.0
  3. 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!