|
|
| (396 intermediate revisions by 54 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 { |
| :# mkdir /usr/local/portage | | margin: 4px; padding:10px; |
| :# add this line to you /etc/make.conf<br> PORTDIR_OVERLAY="/usr/local/portage" | | 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; |
| :# mv taspring-linux-release-ebuild-0.72-r1.tar.bz2 /usr/local/portage
| | 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); |
| :# cd /usr/local/portage | | text-align: center; |
| :# tar jxvf taspring-linux-release-ebuild-0.72-r1.tar.bz2 | | } |
| :# most likely you don't run a ~x86 system (unstable) so do a:<br> echo "games-strategy/taspring-linux-release ~x86" >> /etc/portage/package.keywords
| | /*table.glossy:hover { |
| :# You might want to have a look at the USE flags, type:<br>emerge -pv taspring-linux-release
| | background: rgba(160,160,220,0.4); |
| :# finally:<br>emerge taspring-linux-release
| | }*/ |
| | }} |
|
| |
|
| === 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]] |