Switch branches/tags
Version-0.95-Beta-Revision-3 Version-0.95-Beta-Revision-2 Version-0.95-Beta-Revision-1 Version-0.9-Beta-Revision-10 Version-0.9-Beta-Revision-9 Version-0.9-Beta-Revision-8 Version-0.9-Beta-Revision-7 Version-0.9-Beta-Revision-6 Version-0.9-Beta-Revision-5 Version-0.9-Beta-Revision-4 Version-0.9-Beta-Revision-3 Version-0.9-Beta-Revision-2 Version-0.9-Beta-Revision-1 Version-0.8-Beta-Revision-8 Version-0.8-Beta-Revision-7 Version-0.8-Beta-Revision-6 Version-0.8-Beta-Revision-5 Version-0.8-Beta-Revision-4 Version-0.8-Beta-Revision-3 Version-0.8-Beta-Revision-2 Version-0.8-Beta-Revision-1 Version-0.7-Beta-Revision-1 Version-0.6-Beta-Revision-2 Version-0.6-Beta-Revision-1 Version-0.4-Beta-Revision-14 Version-0.4-Beta-Revision-13 Version-0.4-Beta-Revision-12 Version-0.4-Beta-Revision-11 Version-0.4-Beta-Revision-10 Version-0.4-Beta-Revision-9 Version-0.4-Beta-Revision-8 Version-0.4-Beta-Revision-7 Version-0.4-Beta-Revision-6 Version-0.4-Beta-Revision-5 Version-0.4-Beta-Revision-4 Version-0.4-Beta-Revision-3 Version-0.4-Beta-Revision-2 Version-0.4-Beta-Revision-1 Version-0.3-Beta-Revision-3 Version-0.3-Beta-Revision-2 Version-0.3-Beta-Revision-1 Version-0.2-Beta-Revision-4 Version-0.2-Beta-Revision-3 Version-0.2-Beta-Revision-2 Version-0.2-Beta-Revision-1 Version-0.1-Beta-Revision-42 Version-0.1-Beta-Revision-41 Version-0.1-Beta-Revision-40 Version-0.1-Beta-Revision-39 Version-0.1-Beta-Revision-38 Version-0.1-Beta-Revision-37 Version-0.1-Beta-Revision-35 Version-0.1-Beta-Revision-34 Version-0.1-Beta-Revision-33 Version-0.1-Beta-Revision-32 Version-0.1-Beta-Revision-31 Version-0.1-Beta-Revision-30 Version-0.1-Beta-Revision-29 Version-0.1-Beta-Revision-28 Version-0.1-Beta-Revision-27 Version-0.1-Beta-Revision-26 Version-0.1-Beta-Revision-25 Version-0.1-Beta-Revision-24 Version-0.1-Beta-Revision-23 Version-0.1-Beta-Revision-22 Version-0.1-Beta-Revision-21 Version-0.1-Beta-Revision-20 Version-0.1-Beta-Revision-19 Version-0.1-Beta-Revision-18 Version-0.1-Beta-Revision-17 Version-0.1-Beta-Revision-16 Version-0.1-Beta-Revision-15 Version-0.1-Beta-Revision-14 Version-0.1-Beta-Revision-13 Version-0.1-Beta-Revision-12 Version-0.1-Beta-Revision-11 Version-0.1-Beta-Revision-10 Version-0.1-Beta-Revision-9 Version-0.1-Beta-Revision-8 Version-0.1-Beta-Revision-7 Version-0.1-Beta-Revision-6 Version-0.1-Beta-Revision-5 Version-0.1-Beta-Revision-4 Version-0.1-Beta-Revision-3 Version-0.1-Beta-Revision-2 Version-0.1-Beta-Revision-1
Nothing to show
Find file History
Pull request Compare This branch is 7 commits ahead, 985 commits behind moai:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


Building for Chrome Native Client requires the Native Client SDK, which can be
downloaded from the following URL:


Download and unzip the SDK and run "./naclsdk update", which will download the
most recent updates for the SDK and Native Client platform levels. You can move
the SDK anywhere on your computer, but you have to tell the build where it's 
located. To do so, set the NACL_SDK_ROOT environment variable in your shell to 
the location of the root of the SDK. For example:

export NACL_SDK_ROOT=/Chrome/nacl_sdk

Moai for Native Client also requires FMOD for sound support. FMOD for Native
Client can be downloaded from the following URL:


PLEASE NOTE that FMOD requires a license - information about licensing FMOD is
available at the following URL:


Download and unzip the FMOD SDK and move it anywhere on your computer. To let
the build know where the SDK is located, set the FMOD_SDK_ROOT environment
variable in your shell to the location of the root of the SDK. For example:

export FMOD_SDK_ROOT=/Chrome/fmodapi43805nacl

To build Moai for Native client, run the "build.sh" or "build.bat" script. 
Note that if you are building on Windows, you will need to install cygwin and 
ensure that the cygwin binaries are in your executable path.

The build script takes two optional command line parameters:

-clean (clean, rather than build)

-p platform-level (specifies the Native Client platform level to build for - 
	the default is pepper_16)

You will also have to ensure that FMOD has provided libraries for the platform
level that you have specified or the linking phase of the build will fail. Look
in FMOD_SDK_ROOT/api/lib and ensure that a subdirectory exists for the Native
Client platform level you intend to build with. If no official FMOD libraries
for a given platform level were provided in the SDK, you can attempt to use
another version of the FMOD libraries by creating a soft-link (or shortcut in
Windows) that links the desired platform level with an existing platform level
library supplied by FMOD. For example:

cd $FMOD_SDK_ROOT/api/lib
ln -s pepper_15 pepper_16

This will create a node called pepper_16 that simply points to pepper_15 and
will allow you to build and link for platform level pepper_16 even if no FMOD
libraries for pepper_16 are present in the FMOD SDK.