how to compile under lucid lynx
Posted: 21 Mar 2010, 15:10
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.
Getting source of spring
download the last spring source code here
take the last Source .tar.lzma (aka 7z) (better compression)
uncompress
Single or Dual core compilation
recommanded for single and dual core
create a file contain this code:
more than 2 core compilation
i use it
create a file contain this code:
uninstall
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:
uninstall
Please do not hesitate Signel me any errors or possible improvements
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
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
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
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
Code: Select all
dpkg -r spring-version
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
Code: Select all
dpkg -r springlobby
Please do not hesitate Signel me any errors or possible improvements