Installing the software
PLEASE COME TO CLASS WITH THIS SOFTWARE INSTALLED. We will not spend much time installing software -- there's just too many different OSes/setups/etc...
If you encounter problems, contact me via E-mail (tim@orbitality.com) or AIM (tbalbekov).
Windows
- Download Dev-C++: http://www.bloodshed.net/devcpp.html
- Install it
- Open it up, go to Tools > Package Manager
- Find the "Allegro" package and install it
- You're done -- if you want to experiment, go to "New Project" and select an Allegro project from the Multimedia tab.
Linux (Ubuntu)
Installing the Library
1: You are probably using some kind of XWindows on your Linux distribution, and in order to make an XWindows game, you need the Xwindows SDK. How you get this is dependent on your distribution, but in Ubuntu, you need to install it like so:
sudo apt-get install libX11-dev xorg-dev
2: If you do not have a compiler (gcc), you will also need to install it:
sudo apt-get install build-essentials
3: You may need to compile the Allegro library (http://alleg.sourceforge.net/wip.html#stable). It is the regular process:
tar -xvf allegro-4.2.2.tar.gz
gunzip allegro-4.2.2.gz
cd allegro-4.2.2
./configure
make depend
make
sudo make install
There maybe be a problem with the library finding the shared files, if so, pleace /usr/local/lib into your /etc/ld.so.conf file. Then run ldconfig as root.
Compiling Stuff
There is a script that comes with Allegro that will determine the right linker command: allegro-config
You may need to download other libraries, probably X from your distribution repositories.
gcc myfile.c -o myprogram 'allegro-config --libs'
would compile a simple program, note that those 's are backticks.
Last modified on Nov. 14, 2007 at 10:22 a.m.
