Debian Codegraph @

NEWBIE

raw
1
2
3 The Beginner's Guide to Adonthell
4
5
6 Written by Andrew Henderson <[email protected]>
7 19 February 2000
8
9
10 *******************
11 * 0.0 - CHANGELOG *
12 *******************
13
14 * 24 May 2016 - Kai Sterker <[email protected]>
15 Updated for v0.3.6
16
17 * 30 May 2008 - Kai Sterker <[email protected]>
18 Updated for v0.3.5
19
20 * 24 October 2004 - Kai Sterker <[email protected]>
21 Updated for v0.3.4
22
23 * 17 September 2002 - Kai Sterker <[email protected]>
24 Updated for v0.3.3
25
26 * 08 February 2002 - Kai Sterker <[email protected]>
27 Added Building RPM's Howto
28
29 * 12 January 2002 - Kai Sterker <[email protected]>
30 Added Fullscreen Howto
31
32
33 ****************************
34 * 1.0 - GUIDE INTRODUCTION *
35 ****************************
36
37 Welcome to the world of Adonthell! Most software packages for Linux
38 tend to throw a lot at an unexperienced user when it comes to
39 installation. We know that not everyone is a Linux or Unix guru, not
40 everyone knows how to use gzip and tar, and that asking for step-by-
41 step installation instructions is not too much to ask for. So, we've
42 created this guide to get you rolling with as little hassle as
43 possible.
44
45 We've made this software distribution as easy to install as we could,
46 but we can't automate everything for you. You'll have to build and
47 install a few libraries that Adonthell relies on, then build the
48 Adonthell game itself.
49
50 If you feel that you don't need to have anyone hold your hand during
51 the installation process, just read the INSTALL file in this
52 directory for the standard install information. If you think you
53 need a little help or are having problems, then read on.
54
55 We're making a few assumptions. Take a quick look at them and see if
56 you match:
57
58 - You have a 2.x Linux kernel installed. If you aren't, ask the Linux
59 guru who installed the 1.x kernel to upgrade, since you probably won't
60 be able to build the Adonthell software on it.
61
62 - You have access to a superuser account (such as root). You'll need
63 the superuser permissions in order to install the libraries needed by
64 Adonthell. If you don't have these permissions, bribe your system
65 administrator to install them for you. Twinkies work well as bribes.
66 So do Doritos.
67
68 - You are running X-windows with a 16-bit color depth. If you aren't,
69 Adonthell is going to run slow as it compensates for the difference in
70 color depth. We can compensate for 8, 24, or 32 bit color depths only.
71 If you can only run in 16 color (4-bit) mode, you're out of luck. Sorry
72 again.
73
74 - You have C/C++ development tools (gcc, ld, etc.) installed on your
75 system, as well as the basic utility programs 'tar' and 'gzip'.
76 Practically every Linux installation will install these programs by
77 default. If you don't have these tools, you've got bigger problems
78 than just trying to get Adonthell to run.
79
80 - You have a sound card configured and running under Linux. If you
81 aren't, you'll miss out on the music and sound effects, but will still
82 be able to play the game. As a bonus, though, there is one less library
83 you'll have to download and install.
84
85 ******************************************
86 * 2.0 - OVERVIEW OF THE BEGINNER'S GUIDE *
87 ******************************************
88
89 Here is a quick outline of the steps we are going to follow to install
90 Adonthell:
91
92 * Installing the required libraries
93 - Downloading the libraries
94 - Installing the libraries
95 - Configuring your system to use the libraries
96
97 * Building the Adonthell source code
98 - Downloading the Adonthell source and data package
99 - Building the source package
100 - Installing Adonthell
101
102 * Running Adonthell
103
104 * Questions/Help
105
106 *******************************************
107 * 3.0 - INSTALLING THE REQUIRED LIBRARIES *
108 *******************************************
109
110 There are four libraries that Adonthell depends on. Two of these
111 libraries are required, one is optional. The three REQUIRED libraries
112 (and where they can be downloaded from) are:
113
114 1. The Simple Directmedia Layer (SDL) library, version 2.0 or later.
115
116 http://www.libsdl.org/
117
118 2. Python, version 2.2.1 or later.
119
120 http://www.python.org/
121
122 3. Freetype, version 2.0 or later.
123
124 http://www.freetype.org/
125
126 4. SDL_ttf, version 2.0.12 or later.
127
128 See http://www.libsdl.org/projects/SDL_ttf/
129
130 Sound support under Adonthell is optional (but highly recommended!!).
131 We suggest building Adonthell with sound support if you have a sound
132 card configured to run under Linux. To do that, you'll need to build
133 and install another library:
134
135 5. Ogg Vorbis, version 1.0rc3 or later
136
137 See http://www.xiph.org/downloads/
138
139 6. SDL_mixer, version 2.0 or later.
140
141 See http://www.libsdl.org/projects/SDL_mixer/
142
143 *****************************
144 * 3.1 - INSTALLING BINARIES *
145 *****************************
146
147 All of these libraries might already be part of your distribution,
148 or at least available as binary package on the respective website.
149
150 The package names might differ slightly on your distribution, but
151 the following list should help you to find all required packages:
152
153 For SDL you will need
154 libsdl2-2.0-0
155 libsdl2-dev
156 libsdl2-mixer-2.0-0
157 libsdl2-mixer-dev
158 libsdl2-ttf-2.0-0
159 libsdl2-ttf-dev
160
161 for python
162 python3.5
163 libpython3.5
164 libpython3.5-dev
165
166 for freetype
167 libfreetype6
168 libfreetype6-dev
169
170 and for Ogg Vorbis
171 libogg0
172 libogg-dev
173 libvorbis0a
174 libvorbis-dev
175
176
177 ********************************
178 * 3.2 - INSTALLING FROM SOURCE *
179 ********************************
180
181 The following steps show how to install the Python, SDL, Freetype and
182 Ogg Vorbis libraries from source code. You may install Python, the SDL
183 library, Freetype and Ogg Vorbis in any order.
184
185 Ogg Vorbis itself consists of two libraries: libogg and libvorbis
186 that have to be installed in this order.
187
188
189 Step #1: Download the source code of each library to a convient
190 directory. We suggest downloading to /usr/local/src (if you want to
191 keep the library source around after you've built it) or /tmp (if
192 you don't).
193
194 Step #2: Decompress the tar.gz file. Do this by typing:
195
196 tar -xzf SDL-x.x.x.tar.gz (for SDL)
197 or
198 tar -xzf Python-x.x.tar.gz (for Python)
199 or
200 tar -xzf libogg-x.x.x.tar.gz (for libogg)
201
202 etc.
203
204 ... where the x's are the version numbers of the file you
205 downloaded. A new directory will be created in the current directory
206 with the same name as the tar.gz file (minus the .tar.gz extension).
207
208 Step #3: Build and install the library. Do this by changing into the
209 newly created directory and typing:
210
211 ./configure
212 make
213 make install
214
215 For 'make install' you have to be logged in as superuser (i.e. root).
216
217 Step #4: While logged in to a superuser account (i.e. root),
218 configure the system linker configuration files to find the newly
219 installed library. Do this by typing:
220
221 ldconfig
222
223 Repeat these 4 steps for each library you want to install. If all
224 went well, you now at least have Python, SDL, and Ogg Vorbis
225 installed and configured in your system.
226
227
228 ******************************************
229 * 4.0 BUILDING THE ADONTHELL SOURCE CODE *
230 ******************************************
231
232 Now that the required libraries are built and installed on your
233 system, you need to build the Adonthell program itself. The
234 latest version of Adonthell is 0.3.7. You can download it from the
235 Adonthell website: http://adonthell.nongnu.org/download/.
236
237
238 The steps for installing Adonthell are similar to the steps for
239 installing the libraries above:
240
241 Step #1: Download the Adonthell source and data tar.gz files to
242 a convenient directory.
243
244 Step #2: Decompress the tar.gz files. Do this by typing:
245
246 tar -xzf adonthell-0.3.x.tar.gz
247 tar -xzf wastesedge-0.3.x.tar.gz
248
249 Two new directories will be created in the current directory, named
250 "adonthell-0.3.x" and "wastesedge-0.3.x". Complete step #3 and #4 for
251 both directories.
252
253 Step #3: Build Adonthell. Do this by changing into the newly created
254 directory and typing:
255
256 ./configure
257 make
258
259 A successful configure will produce an output like this:
260
261 Adonthell v0.3.7
262
263 SDL ....................... : 2.0.4
264 Python .................... : 3.5.1+
265 Python debugging .......... : yes
266 Freetype .................. : 18.1.12
267 SWIG ...................... : 3.0.8
268 Ogg music ................. : enabled
269 Building dlgedit .......... : no
270 Building API doc .......... : no
271 Data directory ............ : ${datarootdir}/adonthell
272
273 If everything configured and built with no errors (which it should,
274 if the SDL libraries were correctly installed), Adonthell will now
275 be compiled and ready for use. If you installed Ogg Vorbis, the
276 configure script will detect it and configure the program to play
277 music automatically.
278
279 Step #4: Install Adonthell. Finally, you can log in as root and type
280
281 make install
282
283 to copy the Adonthell binary to /usr/local/bin and the game data
284 to /usr/local/share/adonthell.
285
286
287 *************************
288 * 5.0 RUNNING ADONTHELL *
289 *************************
290
291 After building the Adonthell source, an executable named "adonthell"
292 will be created and installed in /usr/local/bin. After installing the
293 data package, a script called 'adonthell-wastesedge' will be placed
294 there as well. You can launch Adonthell either by typing
295
296 adonthell-0.3 wastesedge
297
298 or by running the script:
299
300 adonthell-wastesedge
301
302 If the game engine and data have been correctly installed, you'll
303 find yourself in the main menu. Here you can begin a new or continue
304 an older game. The arrow keys let you move the cursor, and space
305 selects an option.
306
307
308 **********************
309 * 6.0 Questions/Help *
310 **********************
311
312 Q: Why do I get background music, but never any sound effects?
313
314 A: Full sound effect support is in the code, and some sound effects
315 are even loaded into memory when the game is executed. Currently, no
316 events trigger sound effects, so you won't hear any (excepted those
317 related to GUI events).
318
319
320 Q: The configure script claims it cannot find SDL (or Ogg Vorbis or
321 GTK+) on my system, although I know it is there.
322
323 A: If you have installed precompiled packages (e.g. RPM'S) of those
324 liraries, you most likely have to install the corresponding -devel
325 packages (e.g. SDL-devel.rpm). They should be available where you
326 obtained the non-devel/runtime packages.
327
328 On some systems, it might be necessary to recreate the configure
329 script to work correctly. Do this by typing './autogen.sh' inside
330 the adonthell-0.3.x directory.
331
332
333 Q: While compiling the Adonthell source code I get an error similar
334 to the following:
335
336 adonthell: error in loading shared libraries: libSDL-1.2.so.0:
337 cannot open shared object file: No such file or directory
338
339 A: You either didn't install the library that the error message is
340 complaining about or you forgot to type the command 'ldconfig'
341 as a superuser account (i.e. root) after you installed the library.
342
343
344 Q: I have a problem that isn't listed above. Where can I go for
345 help? How do I contact you?
346
347 A: Adonthell has three public mailing lists to provide support, take
348 suggestions, and interact with the users of the Adonthell software.
349 Any requests for help can be directed to the tech support manager.
350 To report bugs, please write to the Adonthell developer mailing list.
351 There is usually a fairly short response time for any request of help.
352
353 Tech support manager:
354
355 http://savannah.gnu.org/support/?group_id=702
356
357 The mailing list addresses are:
358
359 General topic list: [email protected]
360 Developer list: [email protected]
361 Artwork list: [email protected]
362
363 You can subscribe to these mailing lists by going to the URL:
364
365 http://adonthell.nongnu.org/contact/mailinglist.html
366
367
368 *********************************************************************
369 * That's it! Enjoy the game engine and let us know what you think!! *
370 *********************************************************************
371 - The Adonthell Team