Compiling MOAI on Linux

UPDATE: Take a look to the github repository for updated instructions.

For those who don't know about it, MOAI is an opensource platform for mobile game development. It allows to develop for iOS, Android, Chrome, Windows, OSX and Linux, and it's becoming very famous since Double Fine (Tim Schafer & Ron Gilbert) announced that they will use it to build the Double Fine Adventure.

Now to the point :) I've updated the old cmake files to work with MOAI 1.0 and it seems to be working well so far. You can grab the source with the patches from my github account.

Notice that it's now using the system libraries for most of the dependencies, so you'll need to install some packages.

A quick guide for Debian-based systems (tested on Debian Wheezy):

# Install the dependencies:
sudo aptitude install freeglut3-dev libglew-dev libglu1-mesa-dev libxmu-dev libxi-dev chipmunk-dev libjpeg8-dev libpng-dev libfreetype6-dev liblua5.1-0-dev libjansson-dev libtinyxml-dev libcurl4-openssl-dev zlib1g-dev libexpat1-dev cmake build-essential

# Clone the repository:
git clone git://github.com/spacepluk/moai-dev.git
cd moai-beta
git checkout linux-cmake

# Compile:
mkdir build
cd build
cmake ..
make -j4