author | truelight |
Thu, 24 Mar 2005 14:43:40 +0000 | |
changeset 1540 | 6eef12dab5bf |
parent 940 | d8143e65eb6b |
child 2771 | 18a5056d5dd9 |
permissions | -rw-r--r-- |
940
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
1 |
Compiling OpenTTD using Microsoft Visual C++ 6.0 |
844
3b23ea71b711
(svn r1325) -Fixed eol-style properties on new files. Please before adding a new file to svn use: "svn propset svn:eol-style native <filename's>"!!
darkvater
parents:
614
diff
changeset
|
2 |
|
3b23ea71b711
(svn r1325) -Fixed eol-style properties on new files. Please before adding a new file to svn use: "svn propset svn:eol-style native <filename's>"!!
darkvater
parents:
614
diff
changeset
|
3 |
|
940
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
4 |
---Step 1 |
844
3b23ea71b711
(svn r1325) -Fixed eol-style properties on new files. Please before adding a new file to svn use: "svn propset svn:eol-style native <filename's>"!!
darkvater
parents:
614
diff
changeset
|
5 |
|
940
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
6 |
Download the following files: |
844
3b23ea71b711
(svn r1325) -Fixed eol-style properties on new files. Please before adding a new file to svn use: "svn propset svn:eol-style native <filename's>"!!
darkvater
parents:
614
diff
changeset
|
7 |
|
940
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
8 |
* Useful.zip (http://sourceforge.net/project/showfiles.php?group_id=103924&package_id=114307&release_id=228633) |
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
9 |
* SDL-1.2.8-VC6.zip (http://www.libsdl.org/release/SDL-devel-1.2.8-VC6.zip) |
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
10 |
* DirectX7.0 SDK (http://www.tt-forums.net/download.php?id=15989) (or alternatively the latest DirectX SDK from Microsoft) |
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
11 |
* afxres.h (http://www-d0.fnal.gov/d0dist/dist/packages/d0ve/devel/windows/AFXRES.H) |
844
3b23ea71b711
(svn r1325) -Fixed eol-style properties on new files. Please before adding a new file to svn use: "svn propset svn:eol-style native <filename's>"!!
darkvater
parents:
614
diff
changeset
|
12 |
|
940
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
13 |
...and of course the newest source from svn://svn.openttd.com/trunk |
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
14 |
|
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
15 |
(The alpha version of the new map array can be found at svn://svn.openttd.com/branch/map) |
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
16 |
|
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
17 |
You have to have and SVN-client to download the source: |
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
18 |
|
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
19 |
* Command line version (http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=91) |
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
20 |
* TortoiseSVN (http://tortoisesvn.tigris.org/download.html) |
844
3b23ea71b711
(svn r1325) -Fixed eol-style properties on new files. Please before adding a new file to svn use: "svn propset svn:eol-style native <filename's>"!!
darkvater
parents:
614
diff
changeset
|
21 |
|
3b23ea71b711
(svn r1325) -Fixed eol-style properties on new files. Please before adding a new file to svn use: "svn propset svn:eol-style native <filename's>"!!
darkvater
parents:
614
diff
changeset
|
22 |
|
940
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
23 |
---Step 2 |
844
3b23ea71b711
(svn r1325) -Fixed eol-style properties on new files. Please before adding a new file to svn use: "svn propset svn:eol-style native <filename's>"!!
darkvater
parents:
614
diff
changeset
|
24 |
|
940
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
25 |
Put the newly downloaded files in the VC lib and include directories (Where C:\program files\ is your local location of VC) |
844
3b23ea71b711
(svn r1325) -Fixed eol-style properties on new files. Please before adding a new file to svn use: "svn propset svn:eol-style native <filename's>"!!
darkvater
parents:
614
diff
changeset
|
26 |
|
3b23ea71b711
(svn r1325) -Fixed eol-style properties on new files. Please before adding a new file to svn use: "svn propset svn:eol-style native <filename's>"!!
darkvater
parents:
614
diff
changeset
|
27 |
|
940
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
28 |
* zconf.h [useful.zip] |
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
29 |
* zlib.h [useful.zip] |
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
30 |
* png.h [useful.zip] |
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
31 |
* pngconf.h [useful.zip] |
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
32 |
* afxres.h |
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
33 |
|
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
34 |
in |
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
35 |
|
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
36 |
C:\Program Files\Microsoft Visual Studio\VC98\Include |
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
37 |
|
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
38 |
and |
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
39 |
|
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
40 |
* zlibstat.lib [useful.zip] |
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
41 |
* SDL.lib [SDL.zip] |
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
42 |
* libpng.lib [useful.zip] |
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
43 |
|
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
44 |
in |
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
45 |
|
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
46 |
C:\Program Files\Microsoft Visual Studio\VC98\Lib |
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
47 |
|
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
48 |
|
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
49 |
---Step 3: DirectX SDK |
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
50 |
|
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
51 |
(This should work with the latest DirectX SDK as well.) The installation with DirectX 7 was odd, so you'd better use the version available via the forum, see also the download link on top. |
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
52 |
|
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
53 |
There are 2 folder in the compressed file: Include and Lib |
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
54 |
|
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
55 |
Copy all files from Include folder to |
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
56 |
|
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
57 |
C:\Program Files\Microsoft Visual Studio\VC98\Include |
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
58 |
|
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
59 |
and all files from Lib folder to |
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
60 |
|
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
61 |
C:\Program Files\Microsoft Visual Studio\VC98\Lib |
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
62 |
|
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
63 |
|
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
64 |
|
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
65 |
You can also make custom directories, for libraries (.lib) and includes/header files (.h) and add it to the VC paths via: |
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
66 |
|
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
67 |
Tools -> Options -> Directories -> show directories for: |
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
68 |
|
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
69 |
a) include files (the include dir: C:\Program Files\Microsoft Visual Studio\VC98\DirectX 7 SDK\include ) |
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
70 |
|
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
71 |
b) library files (the lib dir, C:\Program Files\Microsoft Visual Studio\VC98\DirectX 7 SDK\lib ) |
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
72 |
|
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
73 |
|
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
74 |
---Step 4 |
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
75 |
|
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
76 |
Copy the following files from Transport Tycoon Deluxe to the data folder |
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
77 |
|
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
78 |
* sample.cat |
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
79 |
* trg1r.grf |
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
80 |
* trgcr.grf |
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
81 |
* trghr.grf |
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
82 |
* trgir.grf |
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
83 |
* trgtr.grf |
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
84 |
|
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
85 |
|
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
86 |
---Step 5 |
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
87 |
|
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
88 |
Open trunk/ttd.dsw |
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
89 |
|
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
90 |
Build menu > Set active configuration > Select: "ttd - Win32 Release with PNG" |
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
91 |
|
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
92 |
Compile... |
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
93 |
|
844
3b23ea71b711
(svn r1325) -Fixed eol-style properties on new files. Please before adding a new file to svn use: "svn propset svn:eol-style native <filename's>"!!
darkvater
parents:
614
diff
changeset
|
94 |
|
3b23ea71b711
(svn r1325) -Fixed eol-style properties on new files. Please before adding a new file to svn use: "svn propset svn:eol-style native <filename's>"!!
darkvater
parents:
614
diff
changeset
|
95 |
Now it should work, it worked for me :) |
3b23ea71b711
(svn r1325) -Fixed eol-style properties on new files. Please before adding a new file to svn use: "svn propset svn:eol-style native <filename's>"!!
darkvater
parents:
614
diff
changeset
|
96 |
|
940
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
97 |
From r1319 you can compile branch/map in Debug mode (by Bociusz) |
844
3b23ea71b711
(svn r1325) -Fixed eol-style properties on new files. Please before adding a new file to svn use: "svn propset svn:eol-style native <filename's>"!!
darkvater
parents:
614
diff
changeset
|
98 |
|
940
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
99 |
If it's not working, and you checked that you using the newest SVN (!) report to Bociusz on IRC (irc://irc.freenode.net/#openttd) |
844
3b23ea71b711
(svn r1325) -Fixed eol-style properties on new files. Please before adding a new file to svn use: "svn propset svn:eol-style native <filename's>"!!
darkvater
parents:
614
diff
changeset
|
100 |
|
940
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
101 |
Go ahead and make that patch! Happy Hacking! :) |
844
3b23ea71b711
(svn r1325) -Fixed eol-style properties on new files. Please before adding a new file to svn use: "svn propset svn:eol-style native <filename's>"!!
darkvater
parents:
614
diff
changeset
|
102 |
|
940
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
103 |
Originally written by Dribbel |
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
104 |
|
d8143e65eb6b
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents:
844
diff
changeset
|
105 |
Project file updating by Bociusz |