AGL is a game library designed to support the task of developing games in C++. It relies on SDL 1.2.
First, install the dependencies (SDL development files): the base SDL library (the first version, not SDL 2), SDL mixer, SDL ttf and SDL image. In Ubuntu 16.04, for example, you can type this:
sudo apt-get install libsdl1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libsdl-image1.2-dev
Now installing AGL is easy. Just type the following in a terminal (from the src
directory):
make install
This will install the library for use and development. If you want to use AGL for development you can type make install_debug
instead, to install it with debug symbols.
The total AGL is composed of this base lib, plus these other ancilary libs:
These are not necessary for the basic AGL installation.
Each of these libraries depend only on the base AGL, and they can be installed separately if necessary.
If you have also installed AGL Graphics, you can compile and run a test program (located in the src
directory):
make test
./test
Do not use the sh
files. They are old and consider that the project directory is ~/aleva/agl/agl
.