Hi,
I post because i recently decide to re,re,re ... switch to linux (ubuntu gnome 13.10) and installing Zero-K and Spring was a Battle :D
Zero-K
Install
Making game dir:
cd ~
mkdir Zero-K
Install Zero-K:
sudo apt-get install mono-complete xprintidle p7zip wget
wget
http://zero-k.info/lobby/Zero-K.exemono Zero-K.exe
At this time Zero-K must run.
Create Link
Get the icon :
wget
https://zero-k.googlecode.com/svn/trunk/other/ZeroKLobby/ZK_logo_square.icomv ZK_logo_square.ico ~/Zero-K/
Make the shortcut :
vi ~/.local/share/applications/zero-k.desktop
[Desktop Entry]
Encoding=UTF-8
Name=Zero-K
Exec=/usr/bin/mono /home/mathieu/Zero-K/Zero-K.exe
Icon=/home/mathieu/Zero-K/ZK_logo_square.ico
Type=Application
Categories=Games;
/!\ Change home path with youre.
Spring
DL Deb
If you don t want to compile your self try use my package (is quick make checkinstall, not a real package).
https://docs.google.com/file/d/0B_TjAbXafvned2piNDZPWUxHWXc/edit?usp=sharingInstall
Build dependances
sudo apt-get install build-essential cmake cmake-gui git libglew-dev libsdl-dev libdevil-dev libopenal-dev libogg-dev libvorbis-dev libfreetype6-dev p7zip-full libxcursor-dev libboost-thread-dev libboost-regex-dev libboost-system-dev libboost-program-options-dev libboost-signals-dev python-all-dev checkinstall openjdk-7-jre openjdk-7-jdk
Game dependances
sudo apt-get install fonts-freefont-otf libalure1 libdumb1 libwxbase2.8-0 libwxgtk2.8-0 otf-freefont
change youre directory :
mkdir spring_src
cd spring_src
Get the source :
wget
http://sourceforge.net/projects/springrts/files/springrts/spring-91.0/spring_91.0_src.tar.gz/downloadmv download spring_91.0_src.tar.gz
tar -xvzf spring_91.0_src.tar.gz
cd spring_91.0/
Modify source
gedit ~/Zero-K/spring_src/spring_91.0/AI/Skirmish/E323AI/CScopedTimer.h +39
You must change constant : boost::TIME_UTC to boost::TIME_UTC_
or
sed "s/TIME_UTC/TIME_UTC_/g" -i AI/Skirmish/E323AI/CScopedTimer.h
gedit ~/Zero-K/spring_src/spring_91.0/rts/System/Sound/EFX.cpp +85
85 - for(size_t i = 0; i < sizeof(effects); i++) {
85 + for(size_t i = 0; i < sizeof(effects)/sizeof(effects[0]); i++) {
105 - for(size_t i = 0; i < sizeof(filters); i++) {
105 + for(size_t i = 0; i < sizeof(filters)/sizeof(filters[0]); i++) {
compiling
cmake .
make spring
sudo make install-spring
Link for work with Zero-k
ln -s /usr/local/bin/spring ~/Zero-K/engine/91.0
ln -s /usr/local/lib/libunitsync.so ~/Zero-K/engine/91.0
I hope this is usefull.
PS:
If someone want i have a spring.deb