The Allegro Wiki is migrating to github at https://github.com/liballeg/allegro_wiki/wiki

Install Allegro from Ubuntu PPAs

From Allegro Wiki
Revision as of 21:28, February 3, 2018 by Shinprog (talk | contribs) (Added the manipulation for link the lib in the compiler for code::blocks if you are using PPA)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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

Codebloc.png