Compiling Moonlight|3D from source

This page is about compiling Moonlight|3D from the sources that are provided. If you want to work on the Moonlight|3D sources, you should have a look at how to set up and Eclipse project containing the Moonlight|3D sources at MoonlightEclipse.

Prerequisites

In order to compile Moonlight|3D you will need to have the Sun JDK version 1.5.0 or higher properly installed on your system. Additionally you need the ant build in order to run the provided build script.

Getting the sources

There are two ways to access the Moonlight|3D source code. The easier one is to just fetch the nightly checkout from

http://87.230.94.76/~gmueckl/mlnightly/Moonlight-src-current.tar.bz2

and extract that. The harder to set up way is to checkout the sources from the Subversion repository. You can do that by performing the following command in an empty directory after having the Subversion version control system installed for your system:

svn checkout http://dev.moonlight3d.eu/svn/Moonlight/

This should now a produce a complete up to date copy of the Moonlight|3D source code in the Moonlight subdirectory.

Compiling

In order to compile Moonlight|3D you need to change to the newly created Moonlight subdirectory and execute the following two commands:

ant compile
ant package

After a couple of seconds both ant runs should be finished and you should be left with a brand-new .jar file in the Moonlight/ directory and with a lot of jar files populating hte plugins/ directory therein. If no errors have popped up during the compilation you now have a complete build of Moonlight|3D ready to run on your system. You should now be able to run Moonlight|3D as described in the README.