- Download Allegro from http://sourceforge.net/project/showfiles.php?group_id=5665&package_id=40805&release_id=569935 get the file named allegro-4.3.10.tar.gz
- Extract the files into a folder of your choice. I extracted mine like thus /home/cosmicr/Projects/allegro-4.3.10/
- You need to do all this stuff as root, so type sudo su (enter) and type your password.
- Next, because mine was a fresh install of Ubuntu, I didnt have autoconf installed. So load up the Synaptic package manager and install autoconf.
- This next step is only required because we are compiling the Developmental Branch.
- From terminal, cd (your installed folder)/allegro-4.3.10/
- autoconf (enter).
- Here there are two options. You can dynamically link the library, from the same directory now type ./configure (enter).
This may take a minute or so.
Or second option is to type ./configure --enable-static (enter). The second option is how the library in the repository was built. - At the end of the configure process it will tell you which modules wont be built because you dont have those packages installed. At this point you might want to go into Synaptic and install those packages, especially the X11 development files.
- If you installed new packages, you'll need to run ./configure again.
- Now type make (enter).
- After make is finished, type make install (enter).
- At this point you're good to go, but you can also run make install-man to compile the manuals too. There's a whole heap of manual compiling options, such as pdf etc. Have a look at the instructions in the build folder.
- `allegro-config --libs --static`
(from http://www.dreamincode.net/forums/showtopic56986.htm)
- `allegro-config --cflags` `allegro-config --libs`
(from http://ubuntuforums.org/showthread.php?t=185287)
And thats about it! Everything should be good to go.