Skip to content

Building for Linux (ubuntu 13)

ezra edited this page May 8, 2014 · 13 revisions

Getting Moai

$mkdir moai

$cd moai
$git clone https://github.com/moaiforge/moai-sdk.git

$cd moai-sdk
$git checkout cmake-development-stable

Dependencies

$sudo apt-get install git-core cmake build-essential

$sudo apt-get install freeglut3-dev libglew-dev libglu1-mesa-dev libxmu-dev libxi-dev libsdl-dev

sudo apt-get install libxxf86vm-dev 

$bin/build-linux_x64

Cross fingers :) The Build should end up in:

cmake/build/host-glut/moai

You can test by:

./cmake/build/host-glut/moai -s 'print("hello world")'

NB. ensure that gcc-multilib is installed if you are on a 64bit linux and you are compiling for android