<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://springrts-wiki.p2004a.com/mediawiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Lippy</id>
	<title>Spring - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://springrts-wiki.p2004a.com/mediawiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Lippy"/>
	<link rel="alternate" type="text/html" href="https://springrts-wiki.p2004a.com/wiki/Special:Contributions/Lippy"/>
	<updated>2026-11-08T20:27:38Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://springrts-wiki.p2004a.com/mediawiki/index.php?title=SetupGuide&amp;diff=16490</id>
		<title>SetupGuide</title>
		<link rel="alternate" type="text/html" href="https://springrts-wiki.p2004a.com/mediawiki/index.php?title=SetupGuide&amp;diff=16490"/>
		<updated>2007-08-19T22:09:53Z</updated>

		<summary type="html">&lt;p&gt;Lippy: modified taspring -&amp;gt; spring&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Linux Setup Guide ==&lt;br /&gt;
&lt;br /&gt;
=== Which Version To Install ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;0.75b2  has been released not so long ago. This affects some parts of this guide. Currently this guide is MOSTLY updated. I will remove this notice when the pages are fully up to date. Everything that is not especially marked as old should be up to date.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To play online, you must have the same version as everyone else in the game.&lt;br /&gt;
&lt;br /&gt;
Most people should get the current release, version 0.75b2. There are usually&lt;br /&gt;
between 100 and 200 people online in the lobby, and if you want to play with&lt;br /&gt;
them, you need this.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Do not use older than current release version&#039;&#039;&#039;, unless you really know what you are doing.&lt;br /&gt;
&lt;br /&gt;
If you want to see the bleeding edge, you can checkout svn head of spring, but&lt;br /&gt;
it can not be used to play with people who have the release, so you are&lt;br /&gt;
practically limited to playing against nemo. This is mainly interesting for&lt;br /&gt;
people who want to contribute to the project, for testing, finding bugs and&lt;br /&gt;
fixing them, and implementing new features. Head can be seriously broken from&lt;br /&gt;
time to time, or not even compile.&lt;br /&gt;
&lt;br /&gt;
=== Installing With Package Managers On Various Distributions ===&lt;br /&gt;
&lt;br /&gt;
If there is a package for your distributions preferred package manager, it is&lt;br /&gt;
recommended to use it instead of compiling the program yourself from sources.&lt;br /&gt;
&lt;br /&gt;
TODO Yokozar is the new official .deb maintainer, he should have debs for 0.75b2 in a repository sooner or later.&lt;br /&gt;
&lt;br /&gt;
==== 0.74b3 For Etch (Debian 4.0 Stable) With APT ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;DO NOT USE THIS, IT IS FOR OLD VERSION&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
echo &amp;quot;deb http://www.osrts.info/~tvo/deb etch spring&amp;quot; &amp;gt;&amp;gt; /etc/apt/sources.list&lt;br /&gt;
aptitude update&lt;br /&gt;
aptitude install spring spring-data&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Your paths are: Spring executable in &amp;lt;code&amp;gt;/usr/games/spring &amp;lt;/code&amp;gt; and&lt;br /&gt;
read-only data in &amp;lt;code&amp;gt;/usr/share/games/spring&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==== 0.74b3 For Sid (Debian Unstable) With APT ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;DO NOT USE THIS, IT IS FOR OLD VERSION&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The current .deb for Sid is broken, because it depends on some boost packages&lt;br /&gt;
of version 1.33 that are not installable on sid, which has only 1.34. A&lt;br /&gt;
slightly more complex way to install is necessary:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
echo &amp;quot;deb http://www.osrts.info/~tvo/deb sid spring&amp;quot; &amp;gt;&amp;gt; /etc/apt/sources.list&lt;br /&gt;
echo &amp;quot;deb-src http://www.osrts.info/~tvo/deb sid spring&amp;quot; &amp;gt;&amp;gt; /etc/apt/sources.list&lt;br /&gt;
aptitude update&lt;br /&gt;
aptitude install dpkg-dev devscripts&lt;br /&gt;
apt-get source spring&lt;br /&gt;
apt-get build-dep spring&lt;br /&gt;
cd spring-0.74~b3/&lt;br /&gt;
debuild -us -uc&lt;br /&gt;
debi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Your paths are: Spring executable in &amp;lt;code&amp;gt;/usr/games/spring &amp;lt;/code&amp;gt; and&lt;br /&gt;
read-only data in &amp;lt;code&amp;gt; /usr/share/games/spring&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==== 0.74b3 For Ubuntu (any version) With APT ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;DO NOT USE THIS, IT IS FOR OLD VERSION&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
If you have boost 1.33, then all you need is:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
echo &amp;quot;deb http://www.osrts.info/~tvo/deb edgy spring&amp;quot; &amp;gt;&amp;gt; /etc/apt/sources.list&lt;br /&gt;
aptitude update&lt;br /&gt;
aptitude install spring spring-data&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you have boost 1.34, you have to do it the same way as debian unstable:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
echo &amp;quot;deb http://www.osrts.info/~tvo/deb edgy spring&amp;quot; &amp;gt;&amp;gt; /etc/apt/sources.list&lt;br /&gt;
echo &amp;quot;deb-src http://www.osrts.info/~tvo/deb edgy spring&amp;quot; &amp;gt;&amp;gt; /etc/apt/sources.list&lt;br /&gt;
aptitude update&lt;br /&gt;
aptitude install dpkg-dev devscripts&lt;br /&gt;
apt-get source spring&lt;br /&gt;
apt-get build-dep spring&lt;br /&gt;
cd spring-0.74~b3/&lt;br /&gt;
debuild -us -uc&lt;br /&gt;
debi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Your paths are: Spring executable in &amp;lt;code&amp;gt;/usr/games/spring&amp;lt;/code&amp;gt; and&lt;br /&gt;
read-only data in &amp;lt;code&amp;gt;/usr/share/games/spring&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==== 0.75b2 For Gentoo With Portage ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;The location of the overlay will change as soon as we get this in official portage.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
An overlay to use with layman is provided. If gentoo overlays and/or layman are new to you, [http://overlays.gentoo.org/ read about them], as they are an essential part of gentoo.&lt;br /&gt;
&lt;br /&gt;
This example assumes you never used layman before. If it&#039;s not your first time, you hopefully know what to do.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
emerge layman&lt;br /&gt;
layman -f -a spring-unofficial \&lt;br /&gt;
     -o http://svn.springlobby.info/trunk/gentoo/overlays.xml&lt;br /&gt;
echo &amp;quot;source /usr/portage/local/layman/make.conf&amp;quot; &amp;gt;&amp;gt; /etc/make.conf&lt;br /&gt;
echo &amp;quot;games-strategy/spring ~x86&amp;quot; &amp;gt;&amp;gt; /etc/portage/package.keywords&lt;br /&gt;
emerge spring&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Layman makes upgrading really easy too:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
layman --sync ALL&lt;br /&gt;
emerge spring&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Your paths are: Spring executable in &amp;lt;code&amp;gt;/usr/games/bin/spring&amp;lt;/code&amp;gt; and&lt;br /&gt;
read-only data in &amp;lt;code&amp;gt;/usr/share/games/spring&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Installing 0.75b2 From Source ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;You might encounter sync errors in online play if you are not using the exact same version of the compiler and same compiler settings as used for prebuilt packages!&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
For 0.75b2 these are: TODO add them here.&lt;br /&gt;
&lt;br /&gt;
If there is no package tailored for your distribution, you have to install from sources manually. Doing this for distributions where packages are available is not recommended.&lt;br /&gt;
&lt;br /&gt;
==== Getting The Source ====&lt;br /&gt;
&lt;br /&gt;
You can either download the source as a 3.9MB tarball (recommended; v. 0.75b2) or get it from the subversion repository. Either way, the result is the same.&lt;br /&gt;
&lt;br /&gt;
===== Downloading A Tarball =====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /tmp&lt;br /&gt;
wget http://spring.clan-sy.com/dl/spring_0.75b2_src.tar.bz2&lt;br /&gt;
tar xjf spring_0.75b2_src.tar.bz2&lt;br /&gt;
cd spring_0.75b2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== Checking Out From Subversion =====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
aptitude install subversion # if you are not on debian, figure it out&lt;br /&gt;
svn co https://spring.clan-sy.com/svn/spring/tags/spring_0.75b2 /tmp/spring_0.75b2&lt;br /&gt;
cd /tmp/spring_0.75b2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Getting The Dependencies ====&lt;br /&gt;
&lt;br /&gt;
For Etch (debian 4.0 stable) and Sid (debian unstable), I&#039;ve confirmed the&lt;br /&gt;
following to be the minimal set that is necessary to get. I have not tested&lt;br /&gt;
with any version of Ubuntu, but the line is probably almost identical if not&lt;br /&gt;
the same. Quilted tested with ubuntu fiesty fawn on july 28 2007 WORKS.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
aptitude install scons build-essential zlib1g-dev libfreetype6-dev&lt;br /&gt;
aptitude install libsdl1.2-dev libopenal-dev libglew-dev libboost-dev&lt;br /&gt;
aptitude install libboost-thread-dev libboost-regex-dev libdevil-dev&lt;br /&gt;
aptitude install python2.4-dev zip&lt;br /&gt;
aptitude install libsablevm1-dev&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This has been tested to work with a clean install of gentoo 2007.0:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
emerge dev-util/scons \&amp;gt;=media-libs/freetype-2.0.0 \&amp;gt;=media-libs/libsdl-1.2.0&lt;br /&gt;
emerge media-libs/openal =dev-lang/python-2.4\* media-libs/glew dev-libs/boost&lt;br /&gt;
emerge media-libs/devil app-arch/zip&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Users of other distributions should be able to figure out the correct package&lt;br /&gt;
names from this. The scons configure will whine if you forget something, but it&lt;br /&gt;
does not check if you remembered to install zip, even though you still need it.&lt;br /&gt;
&lt;br /&gt;
==== Building And Installing ====&lt;br /&gt;
&lt;br /&gt;
The build will spew out warnings like the following, which you can safely ignore:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
warning: division by zero&lt;br /&gt;
warning: &#039;q&#039; may be used uninitialized in this function&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Configure, build and install:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
scons configure&lt;br /&gt;
scons&lt;br /&gt;
scons install&lt;br /&gt;
mkdir -p /etc/spring&lt;br /&gt;
echo &#039;$HOME/.spring&#039; &amp;gt; /etc/spring/datadir&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Your paths are: Spring executable in &amp;lt;code&amp;gt;/usr/local/games/spring&amp;lt;/code&amp;gt; and&lt;br /&gt;
read-only data in &amp;lt;code&amp;gt;/usr/local/share/games/spring&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Finalizing installation ==&lt;br /&gt;
&lt;br /&gt;
Now all the things you needed to run as root have been done. Some stuff needs to be done by the user who is going to play spring.&lt;br /&gt;
&lt;br /&gt;
I&#039;m assuming bash here, but you can use anything you like to do it of course.&lt;br /&gt;
&lt;br /&gt;
=== Making Data Directories ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
mkdir -p ~/.spring/{base,maps,mods}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Getting Maps ===&lt;br /&gt;
&lt;br /&gt;
You need at least one map to succesfully run spring.&lt;br /&gt;
&lt;br /&gt;
Go to [http://spring.unknown-files.net/category/13/Maps/ Unknown Files, Map Section] and download at least one map. Save it under ~/.spring/maps/ without unpacking the file in any way.&lt;br /&gt;
&lt;br /&gt;
Hint: If you know the map name you want, there is a Quick Search in the top right corner of the page. Just write a part of the name, like one word, and you&#039;ll easily find what you were looking for.&lt;br /&gt;
&lt;br /&gt;
=== Getting Mods ===&lt;br /&gt;
&lt;br /&gt;
You need at least one mod to successfully run spring.&lt;br /&gt;
&lt;br /&gt;
Go to [http://spring.unknown-files.net/category/14/Mods/ Unknown Files, Mod Section] and download at least one mod. Save it under ~/.spring/mods/ without unpacking the file in any way.&lt;br /&gt;
&lt;br /&gt;
Hint: If you know the mod name you want, there is a Quick Search in the top right corner of the page. Just write a part of the name, like one word, and you&#039;ll easily find what you were looking for.&lt;br /&gt;
&lt;br /&gt;
If you want to play mods based on Total Annihilation, for example XTA, AA, BA, then you have to do the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
wget http://ipxserver.dyndns.org/games/spring/mods/xta/base-ota-content.zip&lt;br /&gt;
unzip -d ~/.spring/base base-ota-content.zip&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that you need to own a copy of Total Annihilation, to download this file legally.&lt;br /&gt;
&lt;br /&gt;
If you want to view unit stats of mods, [http://modinfo.unknown-files.net/modit/modit.php this] is the site for you.&lt;br /&gt;
&lt;br /&gt;
=== Editing Settings === &lt;br /&gt;
Defaults should be usable, so you can ignore this until you want to maximise your eye candy or fps :)&lt;br /&gt;
&lt;br /&gt;
When you run spring the first time, it creates ~/.springrc which contains all the settings. It is a simple text file with name=value lines, most of which are pretty obvious and can be edited by hand.&lt;br /&gt;
&lt;br /&gt;
If you want a tool for editing the file, you can use Kloot&#039;s [http://members.chello.nl/mjtobi/Settings++.tar.gz Settings++]. Untar it anywhere and open it by typing &amp;quot;./Settings++&amp;quot; and edit away.&lt;br /&gt;
&lt;br /&gt;
=== Using LuaUI ===&lt;br /&gt;
&lt;br /&gt;
Spring UI is scriptable with Lua. This is called LuaUI, and it is not enabled per default.&lt;br /&gt;
&lt;br /&gt;
Replace LuaUI=0 with LuaUI=1 in your ~/.springrc to use LuaUI.&lt;br /&gt;
&lt;br /&gt;
Lua scripts for LuaUI can be found in [http://spring.unknown-files.net/category/19/Lua_Scripts/ Unknown Files LuaUI Section].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
TODO need more stuff here.&lt;br /&gt;
&lt;br /&gt;
=== Installing Lobby Client ===&lt;br /&gt;
&lt;br /&gt;
To setup online games, you need a lobby client. There are several options to choose from.&lt;br /&gt;
&lt;br /&gt;
You can also use lobby client to setup single player matches against the AI. TODO more information about setting up tasclient to play against AI.&lt;br /&gt;
&lt;br /&gt;
Recommended lobby client for linux is either SpringLobby or AFLobby. You can use them in windows and mac too.&lt;br /&gt;
&lt;br /&gt;
==== Omni ====&lt;br /&gt;
&lt;br /&gt;
This project has been abandoned, and you should not use it.&lt;br /&gt;
&lt;br /&gt;
==== UnityLobby ====&lt;br /&gt;
&lt;br /&gt;
This project has been abandoned, and you should not use it.&lt;br /&gt;
&lt;br /&gt;
==== [http://springlobby.info SpringLobby] ====&lt;br /&gt;
&lt;br /&gt;
SpringLobby is for (at least) Windows, Linux and Mac. There are still some things missing, like support for hole punching nat traversal, but otherwise it should be usable. We are making progress all the time. Try it out! And bug reports are very much velcome.&lt;br /&gt;
&lt;br /&gt;
Visit http://springlobby.info for all things SpringLobby.&lt;br /&gt;
&lt;br /&gt;
==== AFLobby ====&lt;br /&gt;
&lt;br /&gt;
This project is very promising, but is still in beta development. However, is usable for online multiplayer. See forum thread: http://spring.clan-sy.com/phpbb/viewtopic.php?t=8691&lt;br /&gt;
&lt;br /&gt;
==== TASClient ====&lt;br /&gt;
&lt;br /&gt;
I used to recommend wine+TASClient solution before, but now you should try SpringLobby or AFLobby first, before you go this route.&lt;br /&gt;
&lt;br /&gt;
Certain newish version of wine fails with tasclient, TODO can&#039;t remember which one. It should be fixed in the very latest version of wine.&lt;br /&gt;
&lt;br /&gt;
This is a windows program, but it works just fine under wine in linux, and can be used together with native linux spring. I used it myself before moving to SpringLobby.&lt;br /&gt;
&lt;br /&gt;
The only two downsides in using this are that you have to use wine (which should not be a big problem) and your rank won&#039;t increase as long as you use it (also because of win-linux binary interaction).&lt;br /&gt;
&lt;br /&gt;
Download the installer of Spring for Windows, and run it in wine:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
wget http://spring.clan-sy.com/dl/spring_0.75b2.exe&lt;br /&gt;
wine spring_0.75b2.exe&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
No configuration of wine should be needed, if your distribution is sane.&lt;br /&gt;
&lt;br /&gt;
Complete the install, and let it install to the default location, which is Program Files\Spring.&lt;br /&gt;
&lt;br /&gt;
Assuming you completed the earlier step of creating the data directories, now we need to link the windows and linux data together:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
WINESPRING=~/.wine/drive_c/Program\ Files/Spring&lt;br /&gt;
NATIVE=~/.spring/maps&lt;br /&gt;
&lt;br /&gt;
touch &amp;quot;${WINESPRING}/script.txt&amp;quot;&lt;br /&gt;
ln -s &amp;quot;${WINESPRING}/script.txt&amp;quot; &amp;quot;${NATIVE}/script.txt&amp;quot;&lt;br /&gt;
&lt;br /&gt;
rm -r &amp;quot;${WINESPRING}/maps&amp;quot;&lt;br /&gt;
ln -s &amp;quot;${NATIVE}/maps&amp;quot; &amp;quot;${WINESPRING}/maps&amp;quot;&lt;br /&gt;
&lt;br /&gt;
rm -r &amp;quot;${WINESPRING}/mods&amp;quot;&lt;br /&gt;
ln -s &amp;quot;${NATIVE}/mods&amp;quot; &amp;quot;${WINESPRING}/mods&amp;quot;&lt;br /&gt;
&lt;br /&gt;
rm -r &amp;quot;${WINESPRING}/base&amp;quot;&lt;br /&gt;
ln -s &amp;quot;${NATIVE}/base&amp;quot; &amp;quot;${WINESPRING}/base&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For the windows-TASClient to be able to launch native linux spring, we need a wrapper exe in between them. Source code for wrapper exe is:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
#include &amp;lt;windows.h&amp;gt;&lt;br /&gt;
#include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;
#include &amp;lt;tchar.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
#define NATIVE_SPRING_LOCATION TEXT(&amp;quot;/usr/games/spring&amp;quot;)&lt;br /&gt;
#define SPRING_VERSION_REPLY &amp;quot;Spring 0.75b2&amp;quot;&lt;br /&gt;
&lt;br /&gt;
int main (int argc, char **argv)&lt;br /&gt;
{&lt;br /&gt;
  if (argc &amp;gt; 1 &amp;amp;&amp;amp; !strcmp(argv[1], &amp;quot;/V&amp;quot;))&lt;br /&gt;
  {&lt;br /&gt;
     puts(SPRING_VERSION_REPLY);&lt;br /&gt;
     return 0;&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
  STARTUPINFO si;&lt;br /&gt;
  ZeroMemory( &amp;amp;si, sizeof(si) );&lt;br /&gt;
  si.cb = sizeof(si);&lt;br /&gt;
&lt;br /&gt;
  PROCESS_INFORMATION pi;&lt;br /&gt;
  ZeroMemory( &amp;amp;pi, sizeof(pi) );&lt;br /&gt;
&lt;br /&gt;
  // Start the child process.&lt;br /&gt;
  if (!CreateProcess(&lt;br /&gt;
    _tcsdup(NATIVE_SPRING_LOCATION), // No module name (use command line)&lt;br /&gt;
    GetCommandLine(),                // Command line&lt;br /&gt;
    NULL,                            // Process handle not inheritable&lt;br /&gt;
    NULL,                            // Thread handle not inheritable&lt;br /&gt;
    FALSE,                           // Set handle inheritance to FALSE&lt;br /&gt;
    0,                               // No creation flags&lt;br /&gt;
    NULL,                            // Use parent&#039;s environment block&lt;br /&gt;
    NULL,                            // Use parent&#039;s starting directory&lt;br /&gt;
    &amp;amp;si,                             // Pointer to STARTUPINFO structure&lt;br /&gt;
    &amp;amp;pi))                            // Pointer to PROCESS_INFORMATION structure&lt;br /&gt;
    {&lt;br /&gt;
      printf( &amp;quot;CreateProcess failed (%d).\n&amp;quot;, GetLastError() );&lt;br /&gt;
      return 1;&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
  // Wait until child process exits. Wine actually does not know how to wait&lt;br /&gt;
  // for native linux process, so this will return instantly and your gametime&lt;br /&gt;
  // counter does not increase so you don&#039;t get any rank.&lt;br /&gt;
  WaitForSingleObject( pi.hProcess, INFINITE );&lt;br /&gt;
&lt;br /&gt;
  // Close process and thread handles.&lt;br /&gt;
  CloseHandle( pi.hProcess );&lt;br /&gt;
  CloseHandle( pi.hThread );&lt;br /&gt;
&lt;br /&gt;
  return 0;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You might need to modify the define-lines in the beginning to match your location and version. Remember, the version reply must be exactly right, or your game just breaks totally in multiplayer or you can&#039;t even login to lobby server.&lt;br /&gt;
&lt;br /&gt;
Save this code to spring.cc for example, and then we need to install a windows-crosscompiler and compile a windows binary from it inside our linux box like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
aptitude install mingw32&lt;br /&gt;
i586-mingw32msvc-g++ spring.cc -o ~/.wine/drive_c/Program\ Files/Spring/spring.exe&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This assumed debian for installing the crosscompiler, but mingw32 is probably simple to install on other distributions as well.&lt;br /&gt;
&lt;br /&gt;
TODO should provide binary packages for this launcher, as all people don&#039;t have the possibility to set up cross compiler.&lt;br /&gt;
&lt;br /&gt;
Then you should make a script for launching TASClient. The script can be named tasclient for example, and just put it somewhere in your path and make it executable. The script code is:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/usr/bin/env sh&lt;br /&gt;
cd ~/.wine/drive_c/Program\ Files/Spring&lt;br /&gt;
wine TASClient.exe&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now you should be able to type tasclient on the command line, and the lobby appears. &#039;&#039;&#039;This cd operation is necessary. If your working directory is not the same as TASClient.exe&#039;s location, it will just give access violations to you.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Note that every time when you have added new maps, the lobby client caches them and this will take some time, or a long time if you downloaded many maps since last time. Just wait patiently.&lt;br /&gt;
&lt;br /&gt;
Then you should register an account and login with it, and you should be ready to join an online multiplayer game from the list that appears.&lt;br /&gt;
&lt;br /&gt;
It&#039;s likely that you don&#039;t have the correct map or mod at this point, so just get them and join the game. You don&#039;t need to restart your lobby client after downloading the files.&lt;br /&gt;
&lt;br /&gt;
It&#039;s recommended that you spectate a couple of high rank games first, to get some idea of how the game should be played. Some hosts don&#039;t allow spectators, but most do.&lt;br /&gt;
&lt;br /&gt;
=== Troubleshooting ===&lt;br /&gt;
&lt;br /&gt;
==== game dies with sounds/button9.wav &amp;quot;cant find wav file&amp;quot; ====&lt;br /&gt;
&lt;br /&gt;
This or any similar error of not being able to find a specific file are usually because the mod you are using needs ota content, download &amp;amp; install as explained earlier in this document.&lt;br /&gt;
&lt;br /&gt;
==== If You Still Have Problems ====&lt;br /&gt;
&lt;br /&gt;
Join to #taspring on Freenode and tell me (semi_) that you have problems with installing, and I&#039;ll try to improve this guide to solve your problem, if I have time.&lt;br /&gt;
&lt;br /&gt;
However, generic linux problems not really related to installing this should be asked elsewhere.&lt;br /&gt;
&lt;br /&gt;
Prepare to tell me your distribution, which installation method you used, and what exactly is the error. Don&#039;t ask if I&#039;m here or not, just state your problem there and I&#039;ll look into it when I come back.&lt;br /&gt;
&lt;br /&gt;
Other common problems and solutions coming soon.&lt;br /&gt;
&lt;br /&gt;
==== Can&#039;t See Configure Options Before Configuring ====&lt;br /&gt;
&lt;br /&gt;
If you want to see the configure options, because of a bug in the buildsystem you have to have spring configured first. But if configure fails, you are out of luck. So I have listed the options here:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
$ scons --help&lt;br /&gt;
scons: Reading SConscript files ...&lt;br /&gt;
make: Nothing to be done for `all&#039;.&lt;br /&gt;
Succes building streflop!&lt;br /&gt;
Updating bitmaps.sdz&lt;br /&gt;
Updating springcontent.sdz&lt;br /&gt;
scons: done reading SConscript files.&lt;br /&gt;
&lt;br /&gt;
platform: Set to linux, freebsd or windows&lt;br /&gt;
    default: None&lt;br /&gt;
    actual: linux&lt;br /&gt;
&lt;br /&gt;
debug: Set to yes to produce a binary with debug information&lt;br /&gt;
    default: 0&lt;br /&gt;
    actual: 0&lt;br /&gt;
&lt;br /&gt;
syncdebug: Set to yes to enable the sync debugger&lt;br /&gt;
    default: False&lt;br /&gt;
    actual: False&lt;br /&gt;
&lt;br /&gt;
optimize: Enable processor optimizations during compilation&lt;br /&gt;
    default: 1&lt;br /&gt;
    actual: 2&lt;br /&gt;
&lt;br /&gt;
profile: Set to yes to produce a binary with profiling information&lt;br /&gt;
    default: False&lt;br /&gt;
    actual: False&lt;br /&gt;
&lt;br /&gt;
cpppath: Set path to extra header files&lt;br /&gt;
    default: []&lt;br /&gt;
    actual: &lt;br /&gt;
&lt;br /&gt;
libpath: Set path to extra libraries&lt;br /&gt;
    default: []&lt;br /&gt;
    actual: &lt;br /&gt;
&lt;br /&gt;
fpmath: Set to 387 or SSE on i386 and AMD64 architectures&lt;br /&gt;
    default: 387&lt;br /&gt;
    actual: 387&lt;br /&gt;
&lt;br /&gt;
prefix: Install prefix used at runtime&lt;br /&gt;
    default: /usr/local&lt;br /&gt;
    actual: /usr/local&lt;br /&gt;
&lt;br /&gt;
installprefix: Install prefix used for installion&lt;br /&gt;
    default: /usr/local&lt;br /&gt;
    actual: /usr/local&lt;br /&gt;
&lt;br /&gt;
datadir: Data directory (relative to prefix)&lt;br /&gt;
    default: share/games/spring&lt;br /&gt;
    actual: share/games/spring&lt;br /&gt;
&lt;br /&gt;
bindir: Directory for executables (rel. to prefix)&lt;br /&gt;
    default: games&lt;br /&gt;
    actual: games&lt;br /&gt;
&lt;br /&gt;
libdir: Directory for AI plugin modules (rel. to prefix)&lt;br /&gt;
    default: lib/spring&lt;br /&gt;
    actual: lib/spring&lt;br /&gt;
&lt;br /&gt;
strip: Discard symbols from the executable &lt;br /&gt;
(only when neither debugging nor profiling)&lt;br /&gt;
    default: True&lt;br /&gt;
    actual: True&lt;br /&gt;
&lt;br /&gt;
disable_avi: Set to no to turn on avi support&lt;br /&gt;
    default: False on windows, True otherwise&lt;br /&gt;
    actual: True&lt;br /&gt;
&lt;br /&gt;
use_tcmalloc: Use tcmalloc from goog-perftools for memory allocation&lt;br /&gt;
    default: False&lt;br /&gt;
    actual: False&lt;br /&gt;
&lt;br /&gt;
use_mmgr: Use memory manager&lt;br /&gt;
    default: False&lt;br /&gt;
    actual: False&lt;br /&gt;
&lt;br /&gt;
cachedir: Cache directory (see scons manual)&lt;br /&gt;
    default: None&lt;br /&gt;
    actual: &lt;br /&gt;
&lt;br /&gt;
Use scons -H for help about command-line options.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== LuaUI Crash Ingame ====&lt;br /&gt;
&lt;br /&gt;
LuaUI can crash during game, because some lua script you use has a bug. 0.75 should be resistant to this problem, but 0.74b3 is not. After crash, you won&#039;t see the bottom left tooltip box and top right resource bar anymore. Fear not, help is near:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
/resbar 1&lt;br /&gt;
/tooltip 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These might not be necessary in 0.75 anymore at all.&lt;br /&gt;
&lt;br /&gt;
Also, you won&#039;t be able to change the build menu page with mouse anymore, but keys , and . do the trick.&lt;br /&gt;
&lt;br /&gt;
=== Tips ===&lt;br /&gt;
&lt;br /&gt;
* If spring hangs/crashes while in full screen mode, you can press ctrl+alt+backspace to restart X, so no need for a reboot.&lt;br /&gt;
&lt;br /&gt;
* Spring uses OpenAL for sound, Config your sound output i.e esd / arts / oss / alsa by editing /etc/openalrc or ~/.openalrc, example: (&amp;quot;&#039;(&amp;quot; is not a typo)&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;code&amp;gt;(define devices &#039;(alsa))&amp;lt;br&amp;gt;(define speaker-num 2)&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;(define alsa-out-device &amp;quot;hw:0,0&amp;quot;)&amp;lt;br&amp;gt;(define alsa-in-device &amp;quot;hw:0,0&amp;quot;)&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;Adventurous people with an emu10k1 based card (sblive) can try the accelerated openal version. http://www.lost.org.uk/openal.html , don&#039;t submit audiobugs if you do.&lt;br /&gt;
&lt;br /&gt;
* If you really can&#039;t figure out how to get spring compiled, or you think there&#039;s a bug in the code or the buildsystem...&lt;br /&gt;
:* Just poke any developer on IRC:&lt;br /&gt;
::* channel &amp;lt;code&amp;gt;#taspring&amp;lt;/code&amp;gt; on [http://freenode.net/ FreeNode]&lt;br /&gt;
::* or channel &amp;lt;code&amp;gt;#sy&amp;lt;/code&amp;gt; on [http://www.quakenet.org/ QuakeNet]&lt;br /&gt;
:* Post it on [http://taspring.clan-sy.com/phpbb/ the forum]&lt;br /&gt;
:* or file a bug in our [http://taspring.clan-sy.com/mantis/ bug tracking system].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039; [[Main_Page|&amp;lt;- Back to Main page]]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux Port]][[Category:Playing]]&lt;/div&gt;</summary>
		<author><name>Lippy</name></author>
	</entry>
	<entry>
		<id>https://springrts-wiki.p2004a.com/mediawiki/index.php?title=SetupGuide&amp;diff=16392</id>
		<title>SetupGuide</title>
		<link rel="alternate" type="text/html" href="https://springrts-wiki.p2004a.com/mediawiki/index.php?title=SetupGuide&amp;diff=16392"/>
		<updated>2007-06-10T12:51:24Z</updated>

		<summary type="html">&lt;p&gt;Lippy: /* All other linux distributions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Linux Setup Guide ==&lt;br /&gt;
&lt;br /&gt;
=== Gentoo linux ===&lt;br /&gt;
* If you&#039;re running [http://www.gentoo.org Gentoo linux], you&#039;re lucky, because [http://developer.berlios.de/project/showfiles.php?group_id=4358 an ebuild is already available].&amp;lt;br&amp;gt;The best way to install the ebuild in gentoo would be to add an portage overlay and copy the file into the overlay. Now in detail:&amp;lt;br&amp;gt;&lt;br /&gt;
:# &amp;lt;b&amp;gt;mkdir /usr/local/portage&amp;lt;/b&amp;gt;&lt;br /&gt;
:# add this line to you /etc/make.conf&amp;lt;br&amp;gt; &amp;lt;b&amp;gt;PORTDIR_OVERLAY=&amp;quot;/usr/local/portage&amp;quot;&amp;lt;/b&amp;gt;&lt;br /&gt;
:# download the ebuild you want, for example: spring-ebuilds-0.74-r3.tar.bz2&lt;br /&gt;
:# &amp;lt;b&amp;gt;mv spring-ebuilds-0.74-r3.tar.bz2 /usr/local/portage&amp;lt;/b&amp;gt;&lt;br /&gt;
:# &amp;lt;b&amp;gt;cd /usr/local/portage&amp;lt;/b&amp;gt;&lt;br /&gt;
:# &amp;lt;b&amp;gt;tar jxvf spring-ebuilds-0.74-r3.tar.bz2&amp;lt;/b&amp;gt;&lt;br /&gt;
:# most likely you don&#039;t run a ~x86 system (unstable) so do a:&amp;lt;br&amp;gt; &amp;lt;b&amp;gt;echo &amp;quot;games-strategy/spring ~x86&amp;quot; &amp;gt;&amp;gt; /etc/portage/package.keywords&amp;lt;/b&amp;gt;&lt;br /&gt;
:# &amp;lt;b&amp;gt;echo &amp;quot;dev-libs/boost threads&amp;quot; &amp;gt;&amp;gt; /etc/portage/package.use&amp;lt;/b&amp;gt;&lt;br /&gt;
:# if you want spring&#039;s evn version instead of stable do: &amp;lt;br&amp;gt; &amp;lt;b&amp;gt;emerge spring-svn&amp;lt;/b&amp;gt;&lt;br /&gt;
:# You might want to have a look at the USE flags, type:&amp;lt;br&amp;gt;&amp;lt;b&amp;gt;emerge -pv spring&amp;lt;/b&amp;gt;&lt;br /&gt;
:# the current useflags are debug, optimize(which i enabled and worked without errors), omni (for omni lobby) and unity (for Unity Lobby).&lt;br /&gt;
:# finally install it with:&amp;lt;br&amp;gt;&amp;lt;b&amp;gt;emerge spring&amp;lt;/b&amp;gt;&lt;br /&gt;
:* if you get this error:&lt;br /&gt;
:: Calculating dependencies... done!&lt;br /&gt;
:: &amp;gt;&amp;gt;&amp;gt; Emerging (1 of 1) games-strategy/taspring-linux-release-0.72-r1 to /&lt;br /&gt;
:: &amp;gt;&amp;gt;&amp;gt; checking ebuild checksums ;-)&lt;br /&gt;
:: &amp;gt;&amp;gt;&amp;gt; checking auxfile checksums ;-)&lt;br /&gt;
:: &amp;gt;&amp;gt;&amp;gt; checking miscfile checksums ;-)&lt;br /&gt;
:: &amp;gt;&amp;gt;&amp;gt; checking taspring-linux-data-0.72b1.tar.bz2 ;-)&lt;br /&gt;
:: &amp;gt;&amp;gt;&amp;gt; Unpacking source...&lt;br /&gt;
:: &lt;br /&gt;
:: !!! ERROR: games-strategy/taspring-linux-release-0.72-r1 failed.&lt;br /&gt;
:: Call stack:&lt;br /&gt;
::   ebuild.sh, line 1539:   Called dyn_unpack&lt;br /&gt;
::   ebuild.sh, line 711:   Called src_unpack&lt;br /&gt;
::   taspring-linux-release-0.72-r1.ebuild, line 45:   Called subversion_src_unpack &lt;br /&gt;
::   subversion.eclass, line 278:   Called subversion_fetch&lt;br /&gt;
::   subversion.eclass, line 127:   Called die&lt;br /&gt;
:: !!! subversion.eclass: ESVN_REPO_URI is empty.&lt;br /&gt;
:: !!! If you need support, post the topmost build error, and the call stack if relevant.&lt;br /&gt;
:: &lt;br /&gt;
:: !!! This ebuild is from an overlay: &#039;/usr/local/portage&#039; &lt;br /&gt;
:* Then try: &amp;lt;b&amp;gt;rm -Rf /usr/portage/distfiles/svn-src/spring&amp;lt;/b&amp;gt;&lt;br /&gt;
:* Afterwards do: &amp;lt;b&amp;gt;emerge spring&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Debian, Ubuntu &amp;amp; derivatives ===&lt;br /&gt;
&lt;br /&gt;
* Add one of the following lines to your /etc/apt/sources.list file to enable the repository with spring packages.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;code&amp;gt;deb http://www.osrts.info/~tvo/deb edgy spring # Ubuntu Edgy Eft&amp;lt;br&amp;gt;deb http://www.osrts.info/~tvo/deb etch spring # Debian Testing&amp;lt;br&amp;gt;deb http://www.osrts.info/~tvo/deb sid spring &amp;amp;nbsp;# Debian Unstable&amp;lt;br&amp;gt;&amp;lt;/code&amp;gt; &amp;lt;small&amp;gt;As this file is by default read-only, you will have to start your file-explorer with root priviliges, usually by entering: &amp;lt;code&amp;gt;sudo [name of explorer]&amp;lt;/code&amp;gt; in your console.&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Update your local package database by running: &amp;lt;code&amp;gt;sudo apt-get update&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;(Or use the update feature of your favorite package manager, Synaptic, Adept, aptitude, etc.)&lt;br /&gt;
&lt;br /&gt;
* Install the spring package: &amp;lt;code&amp;gt;sudo apt-get install spring&amp;lt;/code&amp;gt; . &amp;lt;small&amp;gt; This will also automagically install all the packages Spring depends on.&amp;lt;/small&amp;gt;&amp;lt;br&amp;gt;&amp;lt;small&amp;gt; If you get errors at the last stage (dependencies not found, e.g.could not find libboost-regex1.33.1) then you will have to edit /etc/apt/sources.list once more. Basicly you will have to add package source links which are more up to date then the ones you have, however I can not be specific, as it depends on which Debian-derivative you are using. &amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Create directories for data files: &amp;lt;code&amp;gt;mkdir -p ~/.spring/{maps,mods,base}&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Point your browser to [http://spring.unknown-files.net/ Unknown Files]. Download at least one map from the map section (put it in ~/.spring/maps), and at least one mod from the mod section (put in ~/.spring/mods). The default maps are [http://spring.unknown-files.net/file/2106/SmallDivide/ SmallDivide] and [http://spring.unknown-files.net/file/2107/Mars/ Mars]. Default mods are either [http://spring.unknown-files.net/file/1967/XTA_v8.1/ XTA] or [http://spring.unknown-files.net/file/1977/NanoBlobs_0.64GPL_Release./ NanoBlobs] (XTA is based on Total Annihilation content, NanoBlobs is free). Note: do NOT unzip .sdz and .sd7 files!&lt;br /&gt;
&lt;br /&gt;
* If you downloaded XTA in the previous step, or ever want to play mods that depend on Total Annihilation content (XTA, AA, BA, etc.), then do the following:&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;code&amp;gt;wget http://ipxserver.dyndns.org/games/spring/mods/xta/base-ota-content.zip&amp;lt;br&amp;gt;unzip -d ~/.spring/base base-ota-content.zip&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;Note that you are legally required to own a copy of Total Annihilation if you perform this last step.&lt;br /&gt;
&lt;br /&gt;
=== All other linux distributions ===&lt;br /&gt;
&lt;br /&gt;
* Make sure you have the following packages installed:&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;code&amp;gt;build-essential sun-java6-jdk sun-java6-jre libsdl-dev libopenal-dev libglew-dev libboost-dev libboost-thread-dev libboost-regex-dev libdevil-dev libfreetype6-dev python2.4-dev scons subversion zip&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Create a working directory, we&#039;ll use this to compile spring:&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;code&amp;gt;mkdir ~/workdir&amp;lt;br&amp;gt;cd ~/workdir&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Download the most recent source tarball (.tar.bz2 file) from [http://developer.berlios.de/project/showfiles.php?group_id=4358 BerliOS], save it in ~/workdir.&lt;br /&gt;
&lt;br /&gt;
* Extract the tarball and switch to the directory (adjust version numbers if necessary):&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;code&amp;gt;tar xfj spring_0.74b3_src.tar.bz2&amp;lt;br&amp;gt;cd spring_0.74b3&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&amp;lt;small&amp;gt;Watch out when using graphical extraction tools. They don&#039;t always create the included empty directories, causing later steps to fail. It is recommended to extract the archive using the above command.&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Configure: &amp;lt;code&amp;gt;scons configure&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;If this doesn&#039;t work, be sure to check you installed all dependencies, and peek at the file config.log, which may show the reason it didn&#039;t work in detail. To tune the configuration (installation paths, debugging, etc.), refer to: &amp;lt;code&amp;gt;scons -H&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Compile by running: &amp;lt;code&amp;gt;scons&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;This can take 5-15 minutes depending on your system.&lt;br /&gt;
&lt;br /&gt;
* To install spring, run the following as root: &amp;lt;code&amp;gt;scons install&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Set up spring to look in your home directory for data files (run as root):&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;code&amp;gt;mkdir -p /etc/spring&amp;lt;br&amp;gt;echo &#039;$HOME/.spring&#039; &amp;gt; /etc/spring/datadir&#039;&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;Alternatively you can specify it in ~/.springrc (if you don&#039;t have root access):&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;code&amp;gt;echo &amp;quot;SpringData=$HOME/.spring&amp;quot; &amp;gt;&amp;gt; ~/.springrc&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Now continue at the fourth (4th) step under &amp;lt;b&amp;gt;Debian, Ubuntu &amp;amp; derivatives&amp;lt;/b&amp;gt;: &amp;quot;Create directories for data files&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Tips:&lt;br /&gt;
&lt;br /&gt;
* If spring hangs/crashes while in full screen mode, you can press ctrl+alt+backspace to restart X, so no need for a reboot.&lt;br /&gt;
&lt;br /&gt;
* Spring uses OpenAL for sound, Config your sound output i.e esd / arts / oss / alsa by editing /etc/openalrc or ~/.openalrc, example: (&amp;quot;&#039;(&amp;quot; is not a typo)&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;code&amp;gt;(define devices &#039;(alsa))&amp;lt;br&amp;gt;(define speaker-num 2)&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;(define alsa-out-device &amp;quot;hw:0,0&amp;quot;)&amp;lt;br&amp;gt;(define alsa-in-device &amp;quot;hw:0,0&amp;quot;)&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;Adventurous people with an emu10k1 based card (sblive) can try the accelerated openal version. http://www.lost.org.uk/openal.html , don&#039;t submit audiobugs if you do.&lt;br /&gt;
&lt;br /&gt;
* If you really can&#039;t figure out how to get spring compiled, or you think there&#039;s a bug in the code or the buildsystem...&lt;br /&gt;
:* Just poke any developer on IRC:&lt;br /&gt;
::* channel &amp;lt;code&amp;gt;#taspring&amp;lt;/code&amp;gt; on [http://freenode.net/ FreeNode]&lt;br /&gt;
::* or channel &amp;lt;code&amp;gt;#sy&amp;lt;/code&amp;gt; on [http://www.quakenet.org/ QuakeNet]&lt;br /&gt;
:* Post it on [http://taspring.clan-sy.com/phpbb/ the forum]&lt;br /&gt;
:* or file a bug in our [http://taspring.clan-sy.com/mantis/ bug tracking system].&lt;br /&gt;
&lt;br /&gt;
=== Settings Editing === &lt;br /&gt;
the .springrc file is difficult to edit by hand, and the windows settings editor won&#039;t change your settings, so use Kloot&#039;s [http://members.chello.nl/mjtobi/Settings++.tar.gz Settings++]. untar it anywhere and open it by typing &amp;quot;./Settings++&amp;quot; and edit away.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039; [[Main_Page|&amp;lt;- Back to Main page]]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux Port]][[Category:Playing]]&lt;/div&gt;</summary>
		<author><name>Lippy</name></author>
	</entry>
	<entry>
		<id>https://springrts-wiki.p2004a.com/mediawiki/index.php?title=SetupGuide&amp;diff=16388</id>
		<title>SetupGuide</title>
		<link rel="alternate" type="text/html" href="https://springrts-wiki.p2004a.com/mediawiki/index.php?title=SetupGuide&amp;diff=16388"/>
		<updated>2007-06-06T01:30:57Z</updated>

		<summary type="html">&lt;p&gt;Lippy: /* All other linux distributions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Linux Setup Guide ==&lt;br /&gt;
&lt;br /&gt;
=== Gentoo linux ===&lt;br /&gt;
* If you&#039;re running [http://www.gentoo.org Gentoo linux], you&#039;re lucky, because [http://developer.berlios.de/project/showfiles.php?group_id=4358 an ebuild is already available].&amp;lt;br&amp;gt;The best way to install the ebuild in gentoo would be to add an portage overlay and copy the file into the overlay. Now in detail:&amp;lt;br&amp;gt;&lt;br /&gt;
:# &amp;lt;b&amp;gt;mkdir /usr/local/portage&amp;lt;/b&amp;gt;&lt;br /&gt;
:# add this line to you /etc/make.conf&amp;lt;br&amp;gt; &amp;lt;b&amp;gt;PORTDIR_OVERLAY=&amp;quot;/usr/local/portage&amp;quot;&amp;lt;/b&amp;gt;&lt;br /&gt;
:# download the ebuild you want, for example: taspring-linux-release-ebuild-0.72-r1.tar.bz2&lt;br /&gt;
:# &amp;lt;b&amp;gt;mv taspring-linux-release-ebuild-0.72-r1.tar.bz2 /usr/local/portage&amp;lt;/b&amp;gt;&lt;br /&gt;
:# &amp;lt;b&amp;gt;cd /usr/local/portage&amp;lt;/b&amp;gt;&lt;br /&gt;
:# &amp;lt;b&amp;gt;tar jxvf taspring-linux-release-ebuild-0.72-r1.tar.bz2&amp;lt;/b&amp;gt;&lt;br /&gt;
:# most likely you don&#039;t run a ~x86 system (unstable) so do a:&amp;lt;br&amp;gt; &amp;lt;b&amp;gt;echo &amp;quot;games-strategy/taspring-linux-release ~x86&amp;quot; &amp;gt;&amp;gt; /etc/portage/package.keywords&amp;lt;/b&amp;gt;&lt;br /&gt;
:# &amp;lt;b&amp;gt;echo &amp;quot;dev-libs/boost threads&amp;quot; &amp;gt;&amp;gt; /etc/portage/package.use&amp;lt;/b&amp;gt;&lt;br /&gt;
:# You might want to have a look at the USE flags, type:&amp;lt;br&amp;gt;&amp;lt;b&amp;gt;emerge -pv taspring-linux-release&amp;lt;/b&amp;gt;&lt;br /&gt;
:# finally install it with:&amp;lt;br&amp;gt;&amp;lt;b&amp;gt;emerge taspring-linux-release&amp;lt;/b&amp;gt;&lt;br /&gt;
:* if you get this error:&lt;br /&gt;
:: Calculating dependencies... done!&lt;br /&gt;
:: &amp;gt;&amp;gt;&amp;gt; Emerging (1 of 1) games-strategy/taspring-linux-release-0.72-r1 to /&lt;br /&gt;
:: &amp;gt;&amp;gt;&amp;gt; checking ebuild checksums ;-)&lt;br /&gt;
:: &amp;gt;&amp;gt;&amp;gt; checking auxfile checksums ;-)&lt;br /&gt;
:: &amp;gt;&amp;gt;&amp;gt; checking miscfile checksums ;-)&lt;br /&gt;
:: &amp;gt;&amp;gt;&amp;gt; checking taspring-linux-data-0.72b1.tar.bz2 ;-)&lt;br /&gt;
:: &amp;gt;&amp;gt;&amp;gt; Unpacking source...&lt;br /&gt;
:: &lt;br /&gt;
:: !!! ERROR: games-strategy/taspring-linux-release-0.72-r1 failed.&lt;br /&gt;
:: Call stack:&lt;br /&gt;
::   ebuild.sh, line 1539:   Called dyn_unpack&lt;br /&gt;
::   ebuild.sh, line 711:   Called src_unpack&lt;br /&gt;
::   taspring-linux-release-0.72-r1.ebuild, line 45:   Called subversion_src_unpack &lt;br /&gt;
::   subversion.eclass, line 278:   Called subversion_fetch&lt;br /&gt;
::   subversion.eclass, line 127:   Called die&lt;br /&gt;
:: !!! subversion.eclass: ESVN_REPO_URI is empty.&lt;br /&gt;
:: !!! If you need support, post the topmost build error, and the call stack if relevant.&lt;br /&gt;
:: &lt;br /&gt;
:: !!! This ebuild is from an overlay: &#039;/usr/local/portage&#039; &lt;br /&gt;
:* Then try: &amp;lt;b&amp;gt;rm -Rf /usr/portage/distfiles/svn-src/spring&amp;lt;/b&amp;gt;&lt;br /&gt;
:* Afterwards do: &amp;lt;b&amp;gt;emerge taspring-linux-release&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Debian, Ubuntu &amp;amp; derivatives ===&lt;br /&gt;
&lt;br /&gt;
* Add one of the following lines to your /etc/apt/sources.list file to enable the repository with spring packages.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;code&amp;gt;deb http://www.osrts.info/~tvo/deb edgy spring # Ubuntu Edgy Eft&amp;lt;br&amp;gt;deb http://www.osrts.info/~tvo/deb etch spring # Debian Testing&amp;lt;br&amp;gt;deb http://www.osrts.info/~tvo/deb sid spring &amp;amp;nbsp;# Debian Unstable&amp;lt;br&amp;gt;&amp;lt;/code&amp;gt; &amp;lt;small&amp;gt;As this file is by default read-only, you will have to start your file-explorer with root priviliges, usually by entering: &amp;lt;code&amp;gt;sudo [name of explorer]&amp;lt;/code&amp;gt; in your console.&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Update your local package database by running: &amp;lt;code&amp;gt;sudo apt-get update&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;(Or use the update feature of your favorite package manager, Synaptic, Adept, aptitude, etc.)&lt;br /&gt;
&lt;br /&gt;
* Install the spring package: &amp;lt;code&amp;gt;sudo apt-get install spring&amp;lt;/code&amp;gt; . &amp;lt;small&amp;gt; This will also automagically install all the packages Spring depends on.&amp;lt;/small&amp;gt;&amp;lt;br&amp;gt;&amp;lt;small&amp;gt; If you get errors at the last stage (dependencies not found, e.g.could not find libboost-regex1.33.1) then you will have to edit /etc/apt/sources.list once more. Basicly you will have to add package source links which are more up to date then the ones you have, however I can not be specific, as it depends on which Debian-derivative you are using. &amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Create directories for data files: &amp;lt;code&amp;gt;mkdir -p ~/.spring/{maps,mods,base}&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Point your browser to [http://spring.unknown-files.net/ Unknown Files]. Download at least one map from the map section (put it in ~/.spring/maps), and at least one mod from the mod section (put in ~/.spring/mods). The default maps are [http://spring.unknown-files.net/file/2106/SmallDivide/ SmallDivide] and [http://spring.unknown-files.net/file/2107/Mars/ Mars]. Default mods are either [http://spring.unknown-files.net/file/1967/XTA_v8.1/ XTA] or [http://spring.unknown-files.net/file/1977/NanoBlobs_0.64GPL_Release./ NanoBlobs] (XTA is based on Total Annihilation content, NanoBlobs is free). Note: do NOT unzip .sdz and .sd7 files!&lt;br /&gt;
&lt;br /&gt;
* If you downloaded XTA in the previous step, or ever want to play mods that depend on Total Annihilation content (XTA, AA, BA, etc.), then do the following:&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;code&amp;gt;wget http://ipxserver.dyndns.org/games/spring/mods/xta/base-ota-content.zip&amp;lt;br&amp;gt;unzip -d ~/.spring/base base-ota-content.zip&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;Note that you are legally required to own a copy of Total Annihilation if you perform this last step.&lt;br /&gt;
&lt;br /&gt;
=== All other linux distributions ===&lt;br /&gt;
&lt;br /&gt;
* Make sure you have the following packages installed:&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;code&amp;gt;build-essential sun-java6-jdk libsdl-dev libopenal-dev libglew-dev libboost-dev libboost-thread-dev libboost-regex-dev libdevil-dev libfreetype6-dev python2.4-dev scons subversion zip free-java-sdk&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Create a working directory, we&#039;ll use this to compile spring:&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;code&amp;gt;mkdir ~/workdir&amp;lt;br&amp;gt;cd ~/workdir&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Download the most recent source tarball (.tar.bz2 file) from [http://developer.berlios.de/project/showfiles.php?group_id=4358 BerliOS], save it in ~/workdir.&lt;br /&gt;
&lt;br /&gt;
* Extract the tarball and switch to the directory (adjust version numbers if necessary):&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;code&amp;gt;tar xfj spring_0.74b3_src.tar.bz2&amp;lt;br&amp;gt;cd spring_0.74b3&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&amp;lt;small&amp;gt;Watch out when using graphical extraction tools. They don&#039;t always create the included empty directories, causing later steps to fail. It is recommended to extract the archive using the above command.&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Configure: &amp;lt;code&amp;gt;scons configure&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;If this doesn&#039;t work, be sure to check you installed all dependencies, and peek at the file config.log, which may show the reason it didn&#039;t work in detail. To tune the configuration (installation paths, debugging, etc.), refer to: &amp;lt;code&amp;gt;scons -H&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Compile by running: &amp;lt;code&amp;gt;scons&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;This can take 5-15 minutes depending on your system.&lt;br /&gt;
&lt;br /&gt;
* To install spring, run the following as root: &amp;lt;code&amp;gt;scons install&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Set up spring to look in your home directory for data files (run as root):&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;code&amp;gt;mkdir -p /etc/spring&amp;lt;br&amp;gt;echo &#039;$HOME/.spring&#039; &amp;gt; /etc/spring/datadir&#039;&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;Alternatively you can specify it in ~/.springrc (if you don&#039;t have root access):&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;code&amp;gt;echo &amp;quot;SpringData=$HOME/.spring&amp;quot; &amp;gt;&amp;gt; ~/.springrc&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Now continue at the fourth (4th) step under &amp;lt;b&amp;gt;Debian, Ubuntu &amp;amp; derivatives&amp;lt;/b&amp;gt;: &amp;quot;Create directories for data files&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Tips:&lt;br /&gt;
&lt;br /&gt;
* If spring hangs/crashes while in full screen mode, you can press ctrl+alt+backspace to restart X, so no need for a reboot.&lt;br /&gt;
&lt;br /&gt;
* Spring uses OpenAL for sound, Config your sound output i.e esd / arts / oss / alsa by editing /etc/openalrc or ~/.openalrc, example: (&amp;quot;&#039;(&amp;quot; is not a typo)&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;code&amp;gt;(define devices &#039;(alsa))&amp;lt;br&amp;gt;(define speaker-num 2)&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;(define alsa-out-device &amp;quot;hw:0,0&amp;quot;)&amp;lt;br&amp;gt;(define alsa-in-device &amp;quot;hw:0,0&amp;quot;)&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;Adventurous people with an emu10k1 based card (sblive) can try the accelerated openal version. http://www.lost.org.uk/openal.html , don&#039;t submit audiobugs if you do.&lt;br /&gt;
&lt;br /&gt;
* If you really can&#039;t figure out how to get spring compiled, or you think there&#039;s a bug in the code or the buildsystem...&lt;br /&gt;
:* Just poke any developer on IRC:&lt;br /&gt;
::* channel &amp;lt;code&amp;gt;#taspring&amp;lt;/code&amp;gt; on [http://freenode.net/ FreeNode]&lt;br /&gt;
::* or channel &amp;lt;code&amp;gt;#sy&amp;lt;/code&amp;gt; on [http://www.quakenet.org/ QuakeNet]&lt;br /&gt;
:* Post it on [http://taspring.clan-sy.com/phpbb/ the forum]&lt;br /&gt;
:* or file a bug in our [http://taspring.clan-sy.com/mantis/ bug tracking system].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039; [[Main_Page|&amp;lt;- Back to Main page]]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux Port]][[Category:Playing]]&lt;/div&gt;</summary>
		<author><name>Lippy</name></author>
	</entry>
</feed>