user1446343
user1446343

Reputation:

How to install Allegro 5 on Mac oSX Lion with XCode

I am new to mac development and was wondering how I can install Allegro 5 on my Mac. I want to use allegro with Xcode, and I am running Lion. How do I install allegro?

Upvotes: 0

Views: 3453

Answers (2)

Cletrix
Cletrix

Reputation: 402

  • Install homebrew in Link

Use the Brew by following these steps:

brew install cmake

brew install zlib brew install freetype brew install jpeg brew install libogg brew install physfs brew install libpng brew install flac brew install ffmpeg

brew install allegro5

Works for me

Upvotes: 0

Sepui
Sepui

Reputation: 621

This can found here: http://wiki.allegro.cc/index.php?title=OSX,_Xcode_4,_Framework

If you are using OS X Lion (10.7.x) and Xcode 4.3 you will run into an issue that is not explained in the wiki. When I would attempt to create a new project and include all the frameworks as instructed and after several hours of truing to find an answer I finally stumbled across my issue.

What you may see is an error similar to:

Undefined symbols for architecture x86_64: "_main", referenced from: ......

This is because for whatever reason AllegroMain-5.0.framework was not added to Summary->Linked Frameworks and Libraries. once you add this its should work!

Upvotes: 1

Related Questions