1 |
Hi,
|
1 |
Hi,
|
2 |
\n
|
2 |
\n
|
3 |
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
|
3 |
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
|
4 |
\n
|
4 |
\n
|
5 |
====== Zero-K ======
|
5 |
====== Zero-K ======
|
6 |
\n
|
6 |
\n
|
7 |
===== Install =====
|
7 |
===== Install =====
|
8 |
\n
|
8 |
\n
|
|
|
9 |
Making game dir:
|
|
|
10 |
\n
|
9 |
cd ~
|
11 |
cd ~
|
10 |
mkdir Zero-K
|
12 |
mkdir Zero-K
|
|
|
13 |
\n
|
|
|
14 |
Install Zero-K:
|
11 |
\n
|
15 |
\n
|
12 |
sudo apt-get install mono-complete xprintidle p7zip wget
|
16 |
sudo apt-get install mono-complete xprintidle p7zip wget
|
13 |
\n
|
17 |
\n
|
14 |
wget http://zero-k.info/lobby/Zero-K.exe
|
18 |
wget http://zero-k.info/lobby/Zero-K.exe
|
15 |
mono Zero-K.exe
|
19 |
mono Zero-K.exe
|
16 |
\n
|
20 |
\n
|
17 |
At this time Zero-K must run.
|
21 |
At this time Zero-K must run.
|
18 |
\n
|
22 |
\n
|
19 |
===== Create Link =====
|
23 |
===== Create Link =====
|
|
|
24 |
\n
|
|
|
25 |
Get the icon :
|
|
|
26 |
\n
|
20 |
wget https://zero-k.googlecode.com/svn/trunk/other/ZeroKLobby/ZK_logo_square.ico
|
27 |
wget https://zero-k.googlecode.com/svn/trunk/other/ZeroKLobby/ZK_logo_square.ico
|
21 |
\n
|
28 |
\n
|
22 |
mv ZK_logo_square.ico ~/Zero-K/
|
29 |
mv ZK_logo_square.ico ~/Zero-K/
|
23 |
\n
|
30 |
\n
|
|
|
31 |
\n
|
|
|
32 |
Make the shortcut :
|
|
|
33 |
\n
|
24 |
vi ~/.local/share/applications/zero-k.desktop
|
34 |
vi ~/.local/share/applications/zero-k.desktop
|
25 |
\n
|
35 |
\n
|
26 |
[Desktop Entry]
|
36 |
[Desktop Entry]
|
27 |
Encoding=UTF-8
|
37 |
Encoding=UTF-8
|
28 |
Name=Zero-K
|
38 |
Name=Zero-K
|
29 |
Exec=/usr/bin/mono /home/mathieu/Zero-K/Zero-K.exe
|
39 |
Exec=/usr/bin/mono /home/mathieu/Zero-K/Zero-K.exe
|
30 |
Icon=/home/mathieu/Zero-K/ZK_logo_square.ico
|
40 |
Icon=/home/mathieu/Zero-K/ZK_logo_square.ico
|
31 |
Type=Application
|
41 |
Type=Application
|
32 |
Categories=Games;
|
42 |
Categories=Games;
|
33 |
\n
|
43 |
\n
|
34 |
/!\ Change home path with youre.
|
44 |
/!\ Change home path with youre.
|
35 |
\n
|
45 |
\n
|
36 |
====== Spring ======
|
46 |
====== Spring ======
|
37 |
===== DL Deb =====
|
47 |
===== DL Deb =====
|
|
|
48 |
\n
|
|
|
49 |
If you don t want to compile your self try use my package (is quick make checkinstall, not a real package).
|
38 |
\n
|
50 |
\n
|
39 |
https://docs.google.com/file/d/0B_TjAbXafvned2piNDZPWUxHWXc/edit?usp=sharing
|
51 |
https://docs.google.com/file/d/0B_TjAbXafvned2piNDZPWUxHWXc/edit?usp=sharing
|
40 |
\n
|
52 |
\n
|
41 |
===== Install =====
|
53 |
===== Install =====
|
42 |
==== Build dependances ====
|
54 |
==== Build dependances ====
|
43 |
\n
|
55 |
\n
|
44 |
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
|
56 |
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
|
45 |
\n
|
57 |
\n
|
46 |
==== Game dependances ====
|
58 |
==== Game dependances ====
|
47 |
\n
|
59 |
\n
|
48 |
sudo apt-get install fonts-freefont-otf libalure1 libdumb1 libwxbase2.8-0 libwxgtk2.8-0 otf-freefont
|
60 |
sudo apt-get install fonts-freefont-otf libalure1 libdumb1 libwxbase2.8-0 libwxgtk2.8-0 otf-freefont
|
|
|
61 |
\n
|
|
|
62 |
change youre directory :
|
49 |
\n
|
63 |
\n
|
|
|
64 |
mkdir spring_src
|
|
|
65 |
cd spring_src
|
|
|
66 |
\n
|
|
|
67 |
Get the source :
|
|
|
68 |
\n
|
50 |
wget http://sourceforge.net/projects/springrts/files/springrts/spring-91.0/spring_91.0_src.tar.gz/download
|
69 |
wget http://sourceforge.net/projects/springrts/files/springrts/spring-91.0/spring_91.0_src.tar.gz/download
|
51 |
mv download spring_91.0_src.tar.gz
|
70 |
mv download spring_91.0_src.tar.gz
|
52 |
tar -xvzf spring_91.0_src.tar.gz
|
71 |
tar -xvzf spring_91.0_src.tar.gz
|
|
|
72 |
\n
|
53 |
cd spring_91.0/
|
73 |
cd spring_91.0/
|
54 |
\n
|
74 |
\n
|
55 |
==== Modify source ====
|
75 |
==== Modify source ====
|
56 |
\n
|
76 |
\n
|
57 |
gedit
spring_91.
0/AI/Skirmish/E323AI/CScopedTimer.
h
+39
|
77 |
gedit
~/Zero-K/spring_src/spring_91.
0/AI/Skirmish/E323AI/CScopedTimer.
h
+39
|
58 |
\n
|
78 |
\n
|
59 |
change
constant
:
boost::TIME_UTC_
|
79 |
You
must
change
constant
:
boost::TIME_UTC
to
boost::TIME_UTC_
|
60 |
or
|
80 |
or
|
61 |
sed "s/TIME_UTC/TIME_UTC_/g" -i AI/Skirmish/E323AI/CScopedTimer.h
|
81 |
sed "s/TIME_UTC/TIME_UTC_/g" -i AI/Skirmish/E323AI/CScopedTimer.h
|
62 |
\n
|
82 |
\n
|
63 |
\n
|
83 |
\n
|
64 |
\n
|
84 |
\n
|
65 |
gedit
/home/mathieu/Zero-K/Spring_src/spring_91.
0/rts/System/Sound/EFX.
cpp
+85
|
85 |
gedit
~/Zero-K/spring_src/spring_91.
0/rts/System/Sound/EFX.
cpp
+85
|
66 |
85 - for(size_t i = 0; i < sizeof(effects); i++) {
|
86 |
85 - for(size_t i = 0; i < sizeof(effects); i++) {
|
67 |
85 + for(size_t i = 0; i < sizeof(effects)/sizeof(effects[0]); i++) {
|
87 |
85 + for(size_t i = 0; i < sizeof(effects)/sizeof(effects[0]); i++) {
|
68 |
105 - for(size_t i = 0; i < sizeof(filters); i++) {
|
88 |
105 - for(size_t i = 0; i < sizeof(filters); i++) {
|
69 |
105 + for(size_t i = 0; i < sizeof(filters)/sizeof(filters[0]); i++) {
|
89 |
105 + for(size_t i = 0; i < sizeof(filters)/sizeof(filters[0]); i++) {
|
70 |
\n
|
90 |
\n
|
71 |
==== compiling ====
|
91 |
==== compiling ====
|
72 |
\n
|
92 |
\n
|
73 |
cmake .
|
93 |
cmake .
|
74 |
\n
|
94 |
\n
|
75 |
make spring
|
95 |
make spring
|
76 |
sudo make install-spring
|
96 |
sudo make install-spring
|
77 |
\n
|
97 |
\n
|
78 |
==== Link for work with Zero-k ====
|
98 |
==== Link for work with Zero-k ====
|
79 |
\n
|
99 |
\n
|
80 |
ln -s /usr/local/bin/spring ~/Zero-K/engine/91.0
|
100 |
ln -s /usr/local/bin/spring ~/Zero-K/engine/91.0
|
81 |
ln -s /usr/local/lib/libunitsync.so ~/Zero-K/engine/91.0
|
101 |
ln -s /usr/local/lib/libunitsync.so ~/Zero-K/engine/91.0
|
82 |
\n
|
102 |
\n
|
83 |
\n
|
103 |
\n
|
84 |
\n
|
104 |
\n
|
85 |
\n
|
105 |
\n
|
86 |
I hope this is usefull.
|
106 |
I hope this is usefull.
|
87 |
\n
|
107 |
\n
|
88 |
PS:
|
108 |
PS:
|
89 |
If someone want i have a spring.deb
|
109 |
If someone want i have a spring.deb
|
90 |
\n
|
110 |
\n
|
91 |
\n
|
111 |
\n
|