HowToBuildStendhal: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
imported>Kymara small fixes to server jar names and spelling |
imported>Kymara updating this quite nice simple guide |
||
| Line 1: | Line 1: | ||
Building Stendhal is very simple if you use ant and you satisfy the dependencies. |
Building Stendhal is very simple if you use ant and you satisfy the dependencies. |
||
You can also [[Configure a development environment (IDE)]]. |
|||
=Requirements= |
=Requirements= |
||
To compile Stendhal you will need: |
To compile Stendhal you will need: |
||
* |
* stendhal source as a stendhal-''version''-src.tar.gz <br>http://arianne.sourceforge.net/?arianne_url=games/game_stendhal#downloads |
||
| ⚫ | |||
* module marauroa <br>http://arianne.sourceforge.net/?arianne_url=servers/server_marauroa |
|||
| ⚫ | |||
* Ant 1.6<br>http://ant.apache.org |
* Ant 1.6<br>http://ant.apache.org |
||
Optionally: |
Optionally: |
||
* Tiled<br>http:// |
* Tiled<br>http://mapeditor.org/ |
||
You can download a compiled marauroa file but Stendhal CVS occasionally requires Marauroa CVS as well. |
|||
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/ |
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/ |
||
| Line 18: | Line 17: | ||
==Build using ant== |
==Build using ant== |
||
First you need ant properly installed on your system to build Stendhal. |
First you need ant properly installed on your system to build Stendhal. |
||
Second you need to compile successfully Marauroa using the compile task. |
|||
Then unpack the stendhal source gzip. |
|||
To build Stendhal first make sure you have the JAR files in the correct place. |
|||
<pre> |
<pre> |
||
cd path/to/stendhal |
cd path/to/stendhal source |
||
cd .. |
|||
mkdir libs |
|||
cd stendhal |
cd stendhal |
||
</pre> |
</pre> |
||
Now add any missing dependencies to the ''lib'' folder: ''TODO: check what these are'' |
|||
Make sure you remove the version number from name or that you create links to the real file without any version number. |
|||
Now just write: |
Now just write: |
||
ant dist |
ant dist |
||
| Line 37: | Line 35: | ||
stendhal-''version''.jar |
stendhal-''version''.jar |
||
stendhal-data-''version''.jar |
stendhal-data-''version''.jar |
||
stendhal-sound-data-''version''.jar |
|||
Server files |
Server files |
||
| Line 61: | Line 60: | ||
In future if you wish to just create the client and server jars (not zips and all release packages) then |
In future if you wish to just create the client and server jars (not zips and all release packages) then |
||
ant clean |
ant clean compile |
||
will suffice. Remember to "ant clean" before you "ant build" everytime - this is done automatically if you "ant dist", however. |
will suffice. Remember to "ant clean" before you "ant build" everytime - this is done automatically if you "ant dist", however. |
||