0
|
1 |
Compiling and developing OpenTTD on MandrakeLinux 10.0 Official
|
|
2 |
|
|
3 |
A quick guide to get started with OpenTTD development on Linux.
|
|
4 |
---------------------------------------------------------------
|
|
5 |
|
|
6 |
1.) RPMs:
|
|
7 |
|
|
8 |
Most packages that are required for development (like gcc) should already be installed on your box. You will require those RPMs additionally:
|
|
9 |
- libsdl1.2-devel-1.2.7-2mdk
|
|
10 |
- subversion-1.0.1-1mdk (+ dependencies)
|
|
11 |
- libsvn_ra_svn1_0-1.0.1-1mdk
|
|
12 |
|
|
13 |
|
|
14 |
2.) Subversion:
|
|
15 |
|
|
16 |
To obtain the source code from the subversion server type
|
|
17 |
$ svn co svn://svn.openttd.com/openttd/trunk openttd
|
|
18 |
from command line to dump the code into the directory 'openttd'.
|
|
19 |
|
|
20 |
To update your working copy to the latest revision use
|
|
21 |
$ svn update
|
|
22 |
Don't worry, your version will be merged with the latest version.
|
|
23 |
|
|
24 |
The command
|
|
25 |
$ svn diff > mypatch.diff
|
|
26 |
creates a patch file (aka diff file) which you can submit to the developers to share your improvements.
|
|
27 |
|
|
28 |
You can undo changes to a file with
|
|
29 |
$svn revert filename
|
|
30 |
|
|
31 |
|
|
32 |
3.) Required data files:
|
|
33 |
|
|
34 |
Copy the following files from the WINDOWS version of Transport Tycoon Deluxe to openttd/data/
|
|
35 |
sample.cat
|
|
36 |
trg1r.grf
|
|
37 |
trgcr.grf
|
|
38 |
trghr.grf
|
|
39 |
trgir.grf
|
|
40 |
trgtr.grf
|
|
41 |
|
|
42 |
|
|
43 |
4.) Compiling and running:
|
|
44 |
|
|
45 |
Compile OpenTTD with
|
|
46 |
$ make
|
|
47 |
and run it with
|
|
48 |
$ ./ttd
|
|
49 |
|
|
50 |
|
|
51 |
5.) Playing the soundtrack:
|
|
52 |
|
|
53 |
If you want the original TTD music you need to copy the whole /gm/ directory from Windows. Additionally the TiMidity driver is required:
|
|
54 |
TiMidity++-2.12.0-0.pre1.4mdk (+ dependencies)
|
|
55 |
To run OpenTTD with music support type
|
|
56 |
$ ./ttd -m extmidi
|
|
57 |
|
|
58 |
|
|
59 |
X.) Last Update: $Date: 2004-06-01 19:08:09 +0200 (Tue, 01 Jun 2004) $
|
|
60 |
Written for revision $Rev: 710 $ |