HowToBuildStendhal: Difference between revisions

From Arianne
Jump to navigation Jump to search
imported>Kymara
updating this quite nice simple guide
imported>Kymara
updating this quite nice simple guide
(No difference)

Revision as of 18:29, 14 January 2010

Building Stendhal is very simple if you use ant and you satisfy the dependencies.

You can also Configure a development environment (IDE).

Requirements

To compile Stendhal you will need:

Optionally:

We do not include dependencies in the source download, to keep the size small. They are in CVS, however, and you can download them via the CVS webfrontend at http://arianne.cvs.sourceforge.net/arianne/stendhal/libs/

Build

Build using ant

First you need ant properly installed on your system to build Stendhal.

Then unpack the stendhal source gzip.

  cd path/to/stendhal source
  cd stendhal

Now add any missing dependencies to the lib folder: TODO: check what these are

Now just write:

ant dist

This will build a full set of JAR files at stendhal/build/lib folder.

Client files

 stendhal-version.jar
 stendhal-data-version.jar
 stendhal-sound-data-version.jar

Server files

 stendhal-server-version.jar
 stendhal-xmlconf-version.jar
 stendhal-maps-version.jar

Webstart

In order for webstart to work, the client .jar-files have to be signed. There is some documentation on http://java.sun.com how this works. So I will put here only a small piece of information to get it integrated into the build process:

Put your private key into a file called keystore.ks into the stendhal-root folder Create a file called build.ant-private.properties with theses lines (replacing the values):

keystore.alias=miguelangelblanchlardin@hotmail.com
keystore.password=secret

Trouble shooting

If you have the message error:

stendhal_source/build.xml:42: Could not create task or type of type: replaceregexp.

For linux users this is corrected by installing the "ant-apache-regexp" package. If you use debian or another debian dist (like Ubuntu) this is included in the "ant-optional" package.

Finally

When you have successfully built Stendhal please read the install documentation. It is available on the Wiki at InstallingStendhal.

In future if you wish to just create the client and server jars (not zips and all release packages) then

ant clean compile

will suffice. Remember to "ant clean" before you "ant build" everytime - this is done automatically if you "ant dist", however.





Back to stendhal main wiki page