BuildStendhalOnUbuntu: Difference between revisions

Content deleted Content added
imported>Oslsachem
a merger of two guides for building stendhal using ant in ubuntu that needs an update from an ubuntu user
imported>Hendrik Brummermann
replaced outdated CVS instructions with git instructions.
Line 4:
This guide is aimed at those who just want to play the latest version of the game before it is officially released.
If you intend to do modifications to the game, it is recommended that you follow [[Configure a development environment (IDE)]] instead.
 
==Get the source Stendhal code ==
 
First of all, you need to get the Stendhal source code. There are two ways:
 
* Download the source distribution at https://arianne-project.org/download/stendhal-src.tar.gz Use <code>tar xzf stendhal-''version''-src.tar.gz</code> to unpack it.
* Alternatively you can clone the git repository to get the latest development version: <code>sudo apt-get install git</code> and <code>git clone https://github.com/arianne/stendhal.git</code>.
 
==Requirements==
 
These are the requirements needed to build Stendhal:
* stendhal source as a stendhal-''version''-src.tar.gz <br>http://arianne.sourceforge.net/?arianne_url=games/game_stendhal#downloads
After downloading it, unpack the stendhal source gzip. From command line:
cd ~
tar xzf stendhal-''version''-src.tar.gz
 
* OpenJDK or Sun'sOracle JDK 1.57 ''or higher'' e.g.:
sudo aptitudeapt-get install sunopenjdk-java68-jdk
'''Note:''' You need to have the [http://doc.ubuntu-fr.org/doc/plf PLF repositories] to get the sun-j2re1.5 package
 
* ant <br>http://ant.apache.org or e.g.:
sudo aptitudeapt-get install ant ant-optional:
 
* ant-optional:
sudo aptitude install ant-optional
'''Note:''' You need to have your universe repositories enabled to get ant-optional
 
==Building with ant==
Line 65 ⟶ 64:
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 rereadread the install documentation. It is available on the Wiki at [[InstallingStendhal]].
 
In the 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.
 
 
== CVS ==
 
Assuming you have CVS installed, you can instead download our source from our CVS HEAD:
cvs -d:pserver:anonymous@arianne.cvs.sourceforge.net:/cvsroot/arianne login
cvs -z3 -d:pserver:anonymous@arianne.cvs.sourceforge.net:/cvsroot/arianne co -P ''stendhal''
 
Which will check out a copy of the stendhal source into a folder called ''stendhal''. Then follow the steps to build using ant as before. If you are asked for a password during checkout, just leave it empty and hit enter.
 
[[Category:Stendhal]]