BuildStendhalOnUbuntu

From Arianne
Revision as of 12:14, 28 February 2010 by imported>Kymara (add todo as this is outdated.)
Jump to navigation Jump to search

TODO: Cleanup or delete, because this is outdated (e.g. you do not need to download any of those jars individually now.) It only seems to explain how to run the client and not build the server. StendhalLocalhostServerOnLinux is preferred.

This guide, taken from a more generic guide will tech you how to build (compile) Stendhal on an Ubuntu machine. This guide was initial written with a Kubuntu 6.06 machine as the tester, so it should be pretty current (at least for another 6 months).

Requirements

These are the requirements needed to build Stendhal

Quick Req. Install

sudo apt-get update
sudo apt-get install liblog4j1.2-java sun-j2re1.5 jython ant ant-optional
cd ~
mkdir build
cd build
download the source  from http://sourceforge.net/project/showfiles.php?group_id=1111&package_id=145790
tar xvzf stendhal*.tar.gz
cd stendhal*
mkdir libs
cd libs

Now download the jar files from http://arianne.cvs.sourceforge.net/arianne/stendhal/libs/

* ant.jar
* jardiff.jar    
* log4j.jar     
* pircbot.jar
* tiled.jar
* groovy.jar
* junit-4.1.jar
* marauroa.jar
* simple.jar
* commons-lang.jar
& any other jars in that folder not listed here may be needed too (if this guide got out of date for example.)

Now go to stendhal dir (one level up) and start ant:

cd ..
ant clean && ant

Client Files

Needed to play.

stendhal-X.xx.jar
stendhal-data-X.xx.jar

Server Files

Needed if you make your own server

stendhal-server-X.xx.jar
stendhal-xmlconf-X.xx.jar
stendhal-maps-X.xx.jar

To Play

To play stendhal, simply copy the compiled binaries over your existing game (make a backup first, unless you want to re-download stendhal if you mess up).

If you want to start it from stendhal-X.xx/build/lib directory you have to copy the libs from stendhal-X.xx/libs/ there:

cd stendhal-X.xx/build/lib
cp ../../libs/* .

And to start type:

java -jar stendhal-X.xx.jar