Loading...
  OR  Zero-K Name:    Password:   

Tuto Install under linux ubuntu 13.10

27 posts, 3171 views
Post comment
Filter:    Player:  
Page of 2 (27 records)
sort
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.exe
mono 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.ico

mv 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=sharing

Install

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/download
mv 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

+1 / -0
Nice, but tutorial use only if static build placed in ~/.spring/engine(s) does not work.
http://springweblobby.googlecode.com/files/spring_91.0_portable_linux_amd64.zip

BTW, you may wanna replace vi with gedit or nano for user convinence.
+0 / -0

10 years ago
i have remplace vi by gedit.

I have tried some 91.0 zip but unsuccess for me.
+0 / -0
This Spring build is 4 days old.
The old one for weblobby didnt worked for me either, new one does.

Would be nice if you posted your deb link (on dropbox fe.)
+0 / -0

10 years ago
i ve put link to DL deb
+0 / -0
10 years ago
"mv ZK_logo_square.ico /home/mathieu/Zero-K/" should be "mv ZK_logo_square.ico ~/Zero-K/". You should probably explain what you are doing with these commands. Linuxites like to know what is happening.
+1 / -0

10 years ago
ok i have make some change to be more explicit.

for the desktop link :

I have try ~ and $HOME but not work for shotcut, someone know how to do ?
+0 / -0


10 years ago
FRrankptiga: if http://springweblobby.googlecode.com/files/spring_91.0_portable_linux_amd64.zip doesn't work for you, can you tell me what error it gives you?
+0 / -0
RUrankAdminikinz is not exactly this one i have tryed, i have tryed the zip on the zero-k Download page. And i get segfault, i think, this is when loading openal, but i not sure.

When i have tried to use weblobby, he say i have bad java version, but i have openjava-7-jdk and openjava-7-jre, and i would'nt install oracle java, so i have let fall.

i download youre link and say you if it work for me.
+0 / -0

10 years ago
The zip : http://springweblobby.googlecode.com/files/spring_91.0_portable_linux_amd64.zip

Work for me.
+0 / -0


10 years ago
I remember telling somebody about optirun zkl env var, and they replied that they just used a script that ran primusrun for them.

Now i upgraded to 13.10 and "primusrun spring" says "could not find matching glx visual" while optirun works, but with decreased perf compared to ironhide version.

How do i primus?
+0 / -0
10 years ago
EErankAdminAnarchid
I don't know about zkl, but I just start springlobby with primusrun.
quote:
primusrun springlobby
+0 / -0


10 years ago
My problem was not with lobby, but with spring itself. Namely, it seems that, for me:
- Any self-compiled spring will fail to launch with primus.
- Static dev builds as shipped by plasma/rapid will not work with primus.

94.1 as shipped by ubuntu ppa, and 91.0 as provided by weblobby help page still work for some reason. FIrankVermind says that static dev builds do work for him, so go figure.
+0 / -0
10 years ago
EErankAdminAnarchid
It is very strange. I have self-compiled spring and it works work primus.
Are you sure that your primus is configured correct?
Have you tried optimus?
+0 / -0


10 years ago
quote:
Now i upgraded to 13.10 and "primusrun spring" says "could not find matching glx visual" while optirun works, but with decreased perf compared to ironhide version.
+0 / -0

10 years ago
EErankAdminAnarchid you figured this out yet?
FRrankptiga Did you really have to compile? I have just been using the static build referenced in this thread. Makes the instructions much shorter.
+0 / -0


10 years ago
I haven't got my dev builds to run yet. And it turns out 91.0 does weird things even on primus (like occasionally i get insta-lags where everything drops to 1 fps) but i'm not sure it's actually fault of graphics.
+0 / -0

10 years ago
@anarchid : glx error come from video driver ? what driver are you using ?

@vermind yes i have compiled, but you can dowload my compilation or the weblobby zip, as you want or compil your-self.
+0 / -0

10 years ago
What is primus and optimus ?
+0 / -0
Technology which is (sometimes) being able to switch between integrated and dedicated graphics.

Often works poorly on Linux.
+0 / -0
Page of 2 (27 records)