Skip to content
Educational Studies Program
Home
Discover ESP
Take a Class!
Volunteer to Teach!
Get Involved
ESP Archives
myESP
Contact Us!
Take a Class!
 
 
  
 
Installing Allegro

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

  1. Download Dev-C++: http://www.bloodshed.net/devcpp.html
  2. Install it
  3. Open it up, go to Tools > Package Manager
  4. Find the “Allegro” package and install it
  5. 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 by aridese on Nov. 14, 2007 at 10:22 a.m.

MIT home

Massachusetts
Institute
of Technology

84 Massachusetts Avenue,
Room W20-467, Cambridge, MA 02139
Tel: 617-253-4882