BuildStendhalOnUbuntu: Difference between revisions

From Arianne
Jump to navigation Jump to search
Content deleted Content added
imported>Hendrik Brummermann
removed deps which are now in our cvs
imported>Schmidta
Line 4: Line 4:
These are the requirements needed to build Stendhal
These are the requirements needed to build Stendhal
* [http://sourceforge.net/project/showfiles.php?group_id=1111&package_id=145790 Latest stendhal.X.xx-src.tar.gz package]
* [http://sourceforge.net/project/showfiles.php?group_id=1111&package_id=145790 Latest stendhal.X.xx-src.tar.gz package]
* [http://sourceforge.net/project/showfiles.php?group_id=1111&package_id=114051 Latest compiled Marauroa (''not the source!'')]
* [http://arianne.cvs.sourceforge.net/arianne/stendhal/libs/ Libs (all .jar files from there)]
* Sun Java SDK 1.5: sun-j2re1.5
* Sun Java SDK 1.5: sun-j2re1.5
** Note: You need to have the [http://doc.ubuntu-fr.org/doc/plf PLF repositories] to get the sun-j2re1.5 package
** Note: You need to have the [http://doc.ubuntu-fr.org/doc/plf PLF repositories] to get the sun-j2re1.5 package
Line 12: Line 12:


== Quick Req. Install ==
== Quick Req. Install ==
sudo apt-get update
Just paste this into the terminal and you'll have all the requirements:
sudo apt-get install liblog4j1.2-java sun-j2re1.5 jython ant ant-optional

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

now download the jar files from http://arianne.cvs.sourceforge.net/arianne/stendhal/libs/
That should give you all the requirements
* ant.jar
* jardiff.jar
* log4j.jar
* pircbot.jar
* tiled.jar
* velocity-dep-1.4.jar
* groovy.jar
* junit-4.1.jar
* marauroa.jar
* simple.jar
* velocity-1.4.jar
cd ..
ant


= Building Time =
= Building Time =

Revision as of 09:09, 11 April 2007

This guide, taken from a more generic guide will tech you how to build (compile) Stendhal on an Ubuntu machine. This guide was written with a Kubuntu 6.06 machine as the tester, so it should be pretty currect (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
* velocity-dep-1.4.jar
* groovy.jar
* junit-4.1.jar
* marauroa.jar
* simple.jar
* velocity-1.4.jar
cd ..
ant

Building Time

Directory Structure

Extract Stendhal and Marauroa in their directory (the ~/build directory). Stendhal should have made it's own folder called stendhal-X.xx

tar -xvf stendhal*src.tar.gz
tar -xvf marauroa*.zip

Now make a directory called libs in the ~/build directory

mkdir libs

rename marauroa-X.xx.jar to simple marauroa.jar

cp marauroa*.jar marauroa.jar

now copy log4j.jar, marauroa.jar, and jython.jar to the libs directory

cp log4j.jar libs
cp marauroa.jar libs
cp jython.jar libs

Building with Ant

Change to the stendhal-X.xx directory

cd stendhal*

Clean up the place first, just in case

ant clean

Now build!

ant

And depending on how well the guide was written/you followed the guide, Stendhal will build. The fully compiled binaries will be in ~/build/stendhal-X.xx/lib/

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-conf-X.xx.jar
stendhal-quests-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).