The Allegro Wiki is migrating to github at https://github.com/liballeg/allegro_wiki/wiki

Build/Linux

From Allegro Wiki
Jump to: navigation, search

This has only been tested on PCLinuxOS 2007.0, but it should be pretty general


For Linux you need the following packages installed (and all their dependencies):

  • allegro
  • liballegro4.2 (or whatever the latest version is)
  • liballegro4.2-devel

Once above packages are installed you are ready to compile an Allegro app


Use this scheme to compile your program in Linux in the console

  <cc> <filename> <options> <program> `allegro-config --libs`


For example, if you want to compile a C source file named myapp.c

  gcc myapp.c -o myapp `allegro-config --libs`


Then run the program

  ./myapp


You can also automate the console compile and run process with the Scite editor