Allegro is available for OS X, even iPhone. CMake (
http://cmake.org ) will help you generate the necessary files. I advise anyone who uses Allegro to use version 4.9 instead of 4.4 as it's a complete rewrite and not backwards compatible, and to get these first though (OS X users can use MacPorts (
http://macports.org ) to install these):
CMake - see above
DirectX SDK (Windows only, links to Feb 2010 release) -
http://services.social.microsoft.com/feeds/FeedItem?feedId=76dc8ff9-e34c-4be6-9414-d47e3dd34317&itemId=9baee178-7a6e-4752-b7c6-ca3ee5ec1f77&title=February+2010+DirectX+SDK&uri=http%3a%2f%2fwww.microsoft.com%2fdownloads%2fdetails.aspx%3fdisplaylang%3den%26FamilyID%3d2c7da5fb-ffbb-4af6-8c66-651cbd28ca15&k=Jg8IObKD5Pdqf4Ru3infZkXLetdjn19PLVx7tOuD%2fF4%3dZLib -
http://zlib.net (VC++ users extract the source .zip as zlib, not zlib-1.2.3), LibPNG needs this
LibPNG -
http://www.libpng.org/pub/png/libpng.html (VC++ users, extract this to the same folder as zlib is in, so that the SLN file will detect zlib), This is needed to use PNG images, a really good format I think
LibJPEG -
http://ijg.org (rename jconfig.xxx to the appropriate extension, VC++ users need to rename makejvcp.vc9 and makejsln.vc9 to jpeg.vcproj and jpeg.sln), Needed for JPEG image use
FreeType -
http://freetype.sf.net - needed for truetype font addon
LibOGG -
http://www.xiph.org/downloads/ Dependency for the Allegro Vorbis addon
LibVorbis -
http://www.xiph.org/downloads/ Needed to use .ogg audio files
LibFLAC -
http://www.xiph.org/downloads/ Needed to use FLAC audio files
OpenAL (OSX has this by default, won't work with Windows) -
http://kcat.strangesoft.net/openal.htmlPhysicsFS -
http://icculus.org/physfs - Needed for PhysicsFS addon, let's you read data from ZIP/HOG/7Z/etc... archives
To install:
Windows users: In your environment variables (System control panel) make the following entries:
Name: LIB
Value: %DXSDK_DIR%\Lib\x86;%LIB%
Name: INCLUDE
Value: %DXSDK_DIR%\Include;%INCLUDE%
Visual Studio 2008 Solution - In command prompt, type: cmake -G "Visual Studio 9 2008"
Xcode Project - In Terminal, type: cmake -G "Xcode"
Unix Makefiles - cmake -G "Unix Makefiles"
MinGW Makefiles - cmake -G "MinGW Makefiles"
Be sure to check the generated CMakeCache.txt file after running this, to make sure it was configured correctly. Rerun the above corresponding CMake command to update it if you make any changes.