My system is LUbuntu11.04. 1. Install code: blocks2. install allegro5 dependency package, including libgl1-mesa-devlibglu1-mesa-devcmakebuild-essentialmake3. Download The allegro5 source code official website http://alleg.sourceforge.net/4.decompress compiler installation unzip cdallegro5w.m
My system is LUbuntu 11.04.
1. Installation code: blocks
2. Install the allegro5 dependency package, including
Libgl1-mesa-dev
Libglu1-mesa-dev
Cmake
Build-essential
Make
3. Download the source code of allegro5
Official http://alleg.sourceforge.net/
4. decompress, compile, and install
$ Cd allegro5
$ Mkdir build
$ Cd build
$ Cmake ..
# Or run cmakegui ..
$ Make
$ Sudo make install
The command for compiling the test. c file with gcc is
Gcc testal. c-o test-lallegro
Or
Gcc test. c-o test $ (pkg-config -- libs allegro-5.0 allegro_image-5.0)
For more information, see the readme_pkgconfig.txt file in the downloaded source code package.
5. Configure code: blocks
Use
Pkg-config -- list-all | grep allegro
View the allegro5 Library File
Use
Pkg-config -- cflags -- libs allegro-5.0
View header files