The Allegro Wiki is migrating to github at


From Allegro Wiki
Jump to: navigation, search


Xcode is a suite of tools for developing software on Mac OS X, developed by Apple. The main application of the suite is the integrated development environment (IDE), also named Xcode. The Xcode suite also includes most of Apple's developer documentation, and Interface Builder, an application used to construct graphical interfaces.

Xcode is bundled free with Mac OS X, though it is not installed by default.

Xcode at Wikipedia

Install Allegro

Install allegro using MacPorts and make sure that your MacPorts is updated (tested with allegro @

sudo port install allegro

Create a new project

Choose Command Line Tool and Type: C.

Edit your Project Settings

Change these configurations in your Build:


32-bit Universal

Other Linker Flags

-framework Cocoa -lalleg-main -lalleg

Header Search Paths *Not recursive


Library Search Paths *Not recursive


Using Allegro with Xcode

How to build allegro with Xcode