how to compile under lucid lynx

how to compile under lucid lynx

Discuss everything related to running Spring on your chosen distribution of Linux.

Moderator: Moderators

Post Reply
mmaura66
Posts: 23
Joined: 26 Dec 2008, 18:06

how to compile under lucid lynx

Post by mmaura66 »

If like me, you want to continu to play spring when helping to beta test next ubuntu you can compile last pring version.
spring 0.81.2.0 is on lucid depot and springlobby 0.63 is on too.

Spring

at first install dependances:

You must install needed packages.

Code: Select all

sudo apt-get install build-essential cmake checkinstall libwxgtk-dev libopenal-dev libcurl4-gnutls-dev libtorrent-rasterbar-dev libboost-regex-dev libboost-program-options-dev libboost-signals-dev libdevil-dev libfreetype6-dev p7zip-full docbook docbook-xsl-doc-text asciidoc libsdl1.2-dev libglew-dev zip libvorbis-dev libxcursor-dev
Getting source of spring

download the last spring source code here

take the last Source .tar.lzma (aka 7z) (better compression)

uncompress

Code: Select all

lzma -d spring_0.81.2.1_src.tar.lzma
tar -xf spring_0.81.2.1_src.tar
Single or Dual core compilation

recommanded for single and dual core

create a file contain this code:

Code: Select all

#!/bin/bash

cd spring_0.81.2.1

make clean

cmake -DCMAKE_INSTALL_PREFIX=/usr -DBINDIR=games -DCMAKE_VERBOSE_MAKEFILE=0 -DMARCH_FLAG= -DUSE_GML=0 -DUSE_GML_SIM=0 -DCMAKE_BUILD_TYPE=RELEASE .

#you can remplace by make -j2 if you have dual core
make 

sudo checkinstall --install=yes -y

echo end of script
read
more than 2 core compilation

i use it

create a file contain this code:

Code: Select all

#!/bin/bash

cd spring_0.81.2.1

make clean

cmake -DCMAKE_INSTALL_PREFIX=/usr -DBINDIR=games -DCMAKE_VERBOSE_MAKEFILE=0 -DMARCH_FLAG= -DUSE_GML=1 -DUSE_GML_SIM=1 -DCMAKE_BUILD_TYPE=RELEASE .
#i have 4 core so i use -j4
make -j4

sudo checkinstall --install=yes -y

echo end of script
read
uninstall

Code: Select all

dpkg -r spring-version
Want to compile springlobby too ?

i do it :)

Getting source of springlobby

download the last springlobby source code here

TODO (springlobby web site is down)

compilation

create a file contain this code:

Code: Select all

#!/bin/bash

cmake . 
#you can remplace make by make -j# where # is number of you computer core/processor
make 
make install

sudo checkinstall --install=yes -y

echo end of script
read
uninstall

Code: Select all

dpkg -r springlobby

Please do not hesitate Signel me any errors or possible improvements
Last edited by mmaura66 on 21 Mar 2010, 15:20, edited 1 time in total.
User avatar
koshi
Lobby Developer
Posts: 1059
Joined: 14 Aug 2007, 16:15

Re: how to compile under lucid lynx

Post by koshi »

1) engine and SL are fully debianized, so no need for checkinstall. Just apply patches.
2) for deps: apt-get build-dep springlobby spring-engine
3) someone just has to upload current revs for lucid to the ppa
mmaura66
Posts: 23
Joined: 26 Dec 2008, 18:06

Re: how to compile under lucid lynx

Post by mmaura66 »

koshi wrote:1) engine and SL are fully debianized, so no need for checkinstall. Just apply patches.
2) for deps: apt-get build-dep springlobby spring-engine
3) someone just has to upload current revs for lucid to the ppa

yes it true, i have tryed in past to put spring on my ppa space, but i never goal to have a compilation on the ppa server (work at home).

you forget "apt-get source spring-engine springlobby" to have the source, with the debian tree.

may be i will re-try on future to put it on my ppa space, but actualy i prefere use precedent scripts.
User avatar
koshi
Lobby Developer
Posts: 1059
Joined: 14 Aug 2007, 16:15

Re: how to compile under lucid lynx

Post by koshi »

I meant _the_ ppa
mmaura66
Posts: 23
Joined: 26 Dec 2008, 18:06

Re: how to compile under lucid lynx

Post by mmaura66 »

At first i use the spring ppa but he does not reflect every time last minor versions of spring-engine and put somes days to make major versions.

and look whats some strange gamers can do when waitting for update .... :)
Post Reply

Return to “Linux”