Install Allegro from Ubuntu PPAs

From Allegro Wiki
Jump to: navigation, search

Allegro 5 has official Ubuntu PPAs. You can download recent releases of Allegro this way without needing to compile it yourself.

For the stable branch (5.2) run this command in your terminal:

sudo add-apt-repository ppa:allegro/5.2

Now, run these commands to install the development versions of Allegro:

sudo apt-get update
sudo apt-get install liballegro5-dev

If you are using codeblocks, please follow theses steps if you want to link the lib to your project

0) Go to “Settings/Compiler and debugger…”

1) Under “Search directories/Compiler”, press “Add” and add “/usr/include/allegro5”

2) paste in Linker Settings>other linked options the output of
pkg-config --libs allegro-5