|
|
| (393 intermediate revisions by 53 users not shown) |
| Line 1: |
Line 1: |
| == Linux Setup Guide ==
| | =Linux/Unix Setup Guide= |
|
| |
|
| === gentoo linux ===
| | {{#css: |
| * If you're running [http://www.gentoo.org Gentoo linux], you're lucky, because [http://developer.berlios.de/project/showfiles.php?group_id=4358 an ebuild is already available].<br>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:<br>
| | table.glossy { |
| :# <b>mkdir /usr/local/portage</b> | | margin: 4px; padding:10px; |
| :# add this line to you /etc/make.conf<br> <b>PORTDIR_OVERLAY="/usr/local/portage"</b> | | border: 1px solid rgba(0,0,0,0.5); |
| :# download the ebuild you want, for example: taspring-linux-release-ebuild-0.72-r1.tar.bz2 | | border-radius: 10px 10px 10px 10px; |
| :# <b>mv taspring-linux-release-ebuild-0.72-r1.tar.bz2 /usr/local/portage</b>
| | box-shadow: 0 2px 6px rgba(0,0,0,0.5), inset 0 1px rgba(255,255,255,0.3), inset 0 10px rgba(255,255,255,0.2), inset 0 10px 20px rgba(255,255,255,0.25), inset 0 -15px 30px rgba(0,0,0,0.3); |
| :# <b>cd /usr/local/portage</b>
| | text-align: center; |
| :# <b>tar jxvf taspring-linux-release-ebuild-0.72-r1.tar.bz2</b>
| | } |
| :# most likely you don't run a ~x86 system (unstable) so do a:<br> <b>echo "games-strategy/taspring-linux-release ~x86" >> /etc/portage/package.keywords</b>
| | /*table.glossy:hover { |
| :# <b>echo "dev-libs/boost threads" >> /etc/portage/package.use</b>
| | background: rgba(160,160,220,0.4); |
| :# You might want to have a look at the USE flags, type:<br><b>emerge -pv taspring-linux-release</b> | | }*/ |
| :# finally install it with:<br><b>emerge taspring-linux-release</b>
| | }} |
| :* 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: <b>rm -Rf /usr/portage/distfiles/svn-src/spring</b>
| |
| :* Afterwards do: <b>emerge taspring-linux-release</b>
| |
|
| |
|
| === all other linux distributions ===
| |
|
| |
|
| In short, to get spring compiled under linux, make sure you've got all necessary development packages installed. On [http://www.ubuntu.com/ (K)Ubuntu linux], and maybe [http://www.debian.org/ 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):<br><br><code>apt-get install build-essential subversion scons libsdl-dev libopenal-dev libglew-dev libboost-dev libboost-thread-dev libboost-filesystem-dev libboost-regex-dev libdevil-dev libfreetype6-dev python2.4-dev</code><br><br>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 [http://www.google.com google] is your friend.
| |
|
| |
|
| * Grab the latest work-in-progress sourcecode from subversion (using commandline SVN): <br><br><code>svn co https://taspring.clan-sy.com/svn/spring/trunk</code><br><br> Or look in https://taspring.clan-sy.com/svn/spring/tags/ for the last official release.
| | {| style="width:70%; margin-left:15%; margin-right:15%;" | |
|
| |
|
| * To compile the sourcecode, switch to the trunk directory created by the svn checkout in the previous step. Then type: <code>scons configure</code> to configure the build. (You can fine tune the build by passing options to this command [for enabling debugging/optimizing etc.]. Type <code>scons --help</code> 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're probably missing a development package.
| | |{{Template:LinuxSetupGuideButton|name=From Source|link=Build_from_source|icon=Git.png}} |
|
| |
|
| * As instructed on end of previous step, type: <code>scons</code> Spring will now build including [[NTAI]], [[JCAI]] and a few [[GroupAI]]s. You should end up with a file <code>trunk/game/spring</code> (the executable) and some shared objects (SOs or DLLs) in <code>trunk/game/aidll</code>
| | |{{Template:LinuxSetupGuideButton|name=Snaps|link=Snaps_install }} |
|
| |
|
| * Now, grab [https://developer.berlios.de/project/showfiles.php?group_id=4358 the linux data tarball] and extract it somewhere. This will create a directory taspring-linux-data-0.71b1 (or higher version number).
| | |{{Template:LinuxSetupGuideButton|name=Ubuntu|link=Ubuntu_install|icon=Distributions-ubuntu.png}} |
|
| |
|
| * Put a symlink to the spring executable in the data directory:<br><code>ln -s /path/to/trunk/game/spring /path/to/taspring-linux-data-0.71b1/spring</code>
| | |{{Template:LinuxSetupGuideButton|name=Gentoo|link=Gentoo_install|icon=Distributions-gentoo.png}} |
|
| |
|
| * Optionally, make symlinks for the shared objects in <code>trunk/game/aidll too</code>.
| | |- |
|
| |
|
| * Now run spring by <code>cd</code>'ing (change dir) to the <code>taspring-linux-data-0.71b1</code> directory and typing: <code>./spring</code> If you've compiled with debugging enabled, you might want to run inside gdb to provide the devs with a backtrace if spring crashes: <code>gdb ./spring</code>
| | |{{Template:LinuxSetupGuideButton|name=Slackware|link=Slackware12_install|icon=Distributions-slackware.png}} |
| ** Basic commands inside gdb are:
| |
| *** <code>'''r'''un</code> - Run the program (spring)
| |
| *** <code>'''bt'''</code> - Print a backtrace
| |
| *** <code>'''q'''uit</code> - Quit
| |
| *** <code>'''help'''</code> - This one's important
| |
|
| |
|
| * Be happy!
| | |{{Template:LinuxSetupGuideButton|name=Debian|link=Debian_install|icon=Distributions-debian.png}} |
|
| |
|
| Tips:
| | |{{Template:LinuxSetupGuideButton|name=Mandriva|link=Mandriva_install|icon=Distributions-mandriva_linux.png}} |
|
| |
|
| * Checkout [http://www.fileuniverse.com File Universe] 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.
| |
| * A binary release of [[AAI]], a skirmish AI, is included in the data package.
| |
| * 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)
| |
|
| |
|
| <code>
| | |{{Template:LinuxSetupGuideButton|name=openSUSE|link=openSUSE_install|icon=Distributions-opensuse_linux.png}} |
| (define devices '(alsa))<br>
| |
| (define speaker-num 2)<br>
| |
| (define alsa-out-device "hw:0,0")<br>
| |
| (define alsa-in-device "hw:0,0")<br>
| |
| </code>
| |
| 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...
| | |{{Template:LinuxSetupGuideButton|name=Fedora|extlink=http://projects.springlobby.info/projects/springlobby/wiki/Install#Fedora-10|icon=Distributions-fedora.png}} |
| * just poke any developer on IRC
| |
| ** channel <code>#taspring</code> on [http://freenode.net/ FreeNode]
| |
| ** or channel <code>#sy</code> on [http://www.quakenet.org/ QuakeNet]
| |
| * post it on the forum
| |
| * or file a bug in our [http://taspring.clan-sy.com/mantis/ Bug tracking system].
| |
|
| |
|
| [[Category:Linux Port]][[Category:Playing]] | | |{{Template:LinuxSetupGuideButton|name=FreeBSD|link=FreeBSD_install|icon=Distributions-freebsd.png}} |
| | |} |
| | |
| | |
| | <span style="float:right">[[Linux:Packaging | Package Maintainers]]</span> |
| | |
| | [[Category:Linux]] |