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

Geany

From Allegro Wiki
Jump to: navigation, search
This article is a stub. Please help Allegro by expanding it.


Geany is available at http://geany.uvena.de/

Linux Instructions

Setting up Includes and Arguments

  1. Install Allegro and Geany from your Package Manager or build from source.
  2. Run Geany and go to "Build" -> "Set Includes and Arguments" in the toolbar.
  3. Use the following settings:

Compile:

g++ -O0 -g3 -Wall -c -o"%e.o" "%f"

Build:

g++ -o"%e" ./%e.o `allegro-config --libs --static`

In Allegro 5 since allegro-config has been replaced by pkg-config it's better to link with:

g++ -o"%e" ./%e.o `pkg-config --libs allegro_dialog-5.0`

Execute:

"./%e"

Windows Instructions

Setting up Includes and Arguments

  1. Install MinGW, making sure to set up the PATH properly
  2. Install Allegro into the MinGW directory
  3. Download and install the latest Geany windows build
  4. Run Geany and go to "Build" -> "Set Includes and Arguments" in the toolbar (open up a .cpp file if it is greyed out)
  5. Use the following settings:

Compile:

g++ -O0 -g3 -Wall -c -o"%e.o" "%f"

Build:

g++ -o"%e" ./%e.o -Lalleg

Execute:

"./%e"

Copy the strings as is, including the quotes.