Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

SetupGuide

From FIGHTORDER
Revision as of 18:20, 21 January 2007 by imported>Tobi (Instructions with explanation)

Linux Setup Guide

gentoo linux

  • If you're running Gentoo linux, you're lucky, because an ebuild is already available.
    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:
  1. mkdir /usr/local/portage
  2. add this line to you /etc/make.conf
    PORTDIR_OVERLAY="/usr/local/portage"
  3. download the ebuild you want, for example: taspring-linux-release-ebuild-0.72-r1.tar.bz2
  4. mv taspring-linux-release-ebuild-0.72-r1.tar.bz2 /usr/local/portage
  5. cd /usr/local/portage
  6. tar jxvf taspring-linux-release-ebuild-0.72-r1.tar.bz2
  7. most likely you don't run a ~x86 system (unstable) so do a:
    echo "games-strategy/taspring-linux-release ~x86" >> /etc/portage/package.keywords
  8. echo "dev-libs/boost threads" >> /etc/portage/package.use
  9. You might want to have a look at the USE flags, type:
    emerge -pv taspring-linux-release
  10. finally install it with:
    emerge taspring-linux-release
  • if you get this error:
Calculating dependencies... done!
>>> Emerging (1 of 1) games-strategy/taspring-linux-release-0.72-r1 to /
>>> checking ebuild checksums ;-)
>>> checking auxfile checksums ;-)
>>> checking miscfile checksums ;-)
>>> checking taspring-linux-data-0.72b1.tar.bz2 ;-)
>>> Unpacking source...
!!! ERROR: games-strategy/taspring-linux-release-0.72-r1 failed.
Call stack:
ebuild.sh, line 1539: Called dyn_unpack
ebuild.sh, line 711: Called src_unpack
taspring-linux-release-0.72-r1.ebuild, line 45: Called subversion_src_unpack
subversion.eclass, line 278: Called subversion_fetch
subversion.eclass, line 127: Called die
!!! subversion.eclass: ESVN_REPO_URI is empty.
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! This ebuild is from an overlay: '/usr/local/portage'
  • Then try: rm -Rf /usr/portage/distfiles/svn-src/spring
  • Afterwards do: emerge taspring-linux-release

all other linux distributions

For the impatient

(installs everythingn to ~/spring)

mkdir ~/spring; cd ~/spring
wget http://download.berlios.de/taspring-linux/spring-linux-data-0.74b1.tar.bz2
tar xfj spring-linux-data-0.74b1.tar.bz2
svn co https://taspring.clan-sy.com/svn/spring/tags/taspring_0.74b1 source
cd source
scons configure && scons
echo "SpringData=$HOME/spring/source/game:$HOME/spring/spring-linux-data-0.74b1" >> ~/.springrc

Instructions with explanation

In short, to get spring compiled under linux, make sure you've got all necessary development packages installed. On (K)Ubuntu linux, and maybe Debian too, this can be done by copying the following in a root terminal (or use the graphical package manager Synaptic or Adept if you can't stand commandline):

apt-get install build-essential subversion scons libsdl-dev libopenal-dev libglew-dev libboost-dev libboost-thread-dev libboost-regex-dev libdevil-dev libfreetype6-dev python2.4-dev zip

For any other distribution, grab these libraries and the base development packages too (for Gentoo, base development packages aren't needed, because everything is compiled from source: they're already installed). I've no clue about RPM based distros. But google is your friend.

  • Make a directory to put everything in, and change to that directory.
    br>mkdir ~/spring; cd ~/spring
  • To compile the sourcecode, switch to the taspring_0.74b1 directory created by the svn checkout in the previous step. Then type: scons configure to configure the build. (You can fine tune the build by passing options to this command [for enabling debugging/optimizing etc.]. Type scons --help to view the available options.) Now, if you really installed all development package, the scons configure will output: "Everything seems OK. Run `scons' now to build.". If it outputs with an error you've probably missing a development package.
  • As instructed on end of previous step, type: scons Spring will now build including AAI and some GroupAIs. You should end up with a file game/spring (the executable) and some shared objects (SOs or DLLs) in game/AI/Bot-libs and game/AI/Helper-libs
  • Now, grab the linux data tarball and extract it somewhere. This will create a directory taspring-linux-data-0.74b1 (or higher version number).
  • Set up data directories like this:
    echo "SpringData=$HOME/spring/source/game:$HOME/spring/spring-linux-data-0.74b1" >> ~/.springrc
  • Now run spring. It'll automatically find data in the directories specified in the previous step. If you've compiled with debugging enabled, you might want to run inside gdb to provide the devs with a backtrace if spring crashes: gdb ./spring
    • Basic commands inside gdb are:
      • run - Run the program (spring)
      • bt - Print a backtrace
      • quit - Quit
      • help - This one's important
  • Be happy!

Tips:

  • Checkout Unknown Files for much more maps & mods.
  • If spring hangs/crashes while in full screen mode, you can press ctrl+alt+backspace to restart X, so no need for a reboot.
  • Spring uses OpenAL for sound, Config your sound output i.e esd / arts / oss / alsa by editing /etc/openalrc or ~/.openalrc, example: ("'(" is not a typo)

(define devices '(alsa))
(define speaker-num 2)
(define alsa-out-device "hw:0,0")
(define alsa-in-device "hw:0,0")
Adventurous people with an emu10k1 based card (sblive) can try the accelerated openal version. http://www.lost.org.uk/openal.html , don't submit audiobugs if you do.

If you really can't figure out how to get spring compiled, or you think there's a bug in the code or the buildsystem...