mirror of https://github.com/OpenTTD/OpenTTD
(svn r3318) - Codechange: [FS#27] MSVC projectfile & documentation update (bociusz)
parent
e66db9c6d4
commit
a7793e97a5
|
@ -1,54 +1,50 @@
|
||||||
Compiling OpenTTD using Microsoft Visual C++ 6.0
|
Compiling OpenTTD using Microsoft Visual C++ 6.0
|
||||||
|
|
||||||
|
|
||||||
---Step 1
|
Step 1: Ingredients
|
||||||
|
|
||||||
Download the following files:
|
Download the following files:
|
||||||
|
|
||||||
* Useful.zip (http://sourceforge.net/project/showfiles.php?group_id=103924&package_id=114307&release_id=228633)
|
* Openttd-useful.zip (http://sourceforge.net/project/showfiles.php?group_id=103924&package_id=114307&release_id=228633)
|
||||||
* SDL-1.2.8-VC6.zip (http://www.libsdl.org/release/SDL-devel-1.2.8-VC6.zip)
|
* DirectX 8.1 SDK (http://neuron.tuke.sk/~mizanin/eng/Dx81sdk-include-lib.rar) (or alternatively the latest DirectX SDK from Microsoft)
|
||||||
* DirectX7.0 SDK (http://www.tt-forums.net/download.php?id=15989) (or alternatively the latest DirectX SDK from Microsoft)
|
* The February 2003 Microsoft Platform SDK (http://www.microsoft.com/msdownload/platformsdk/sdkupdate/XPSP2FULLInstall.htm) (newer SDK's do not work with MSVC6)
|
||||||
* afxres.h (http://www-d0.fnal.gov/d0dist/dist/packages/d0ve/devel/windows/AFXRES.H)
|
* afxres.h (http://www-d0.fnal.gov/d0dist/dist/packages/d0ve/devel/windows/AFXRES.H) (maybe you not need this)
|
||||||
|
|
||||||
...and of course the newest source from svn://svn.openttd.com/trunk
|
...and of course the newest source from svn://svn.openttd.org/trunk
|
||||||
|
|
||||||
(The alpha version of the new map array can be found at svn://svn.openttd.com/branch/map)
|
You have to have a SVN-client to download the source:
|
||||||
|
|
||||||
You have to have and SVN-client to download the source:
|
* Command line version (Subversion 1.2.3 Win32 binaries) (http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=91)
|
||||||
|
* GUI TortoiseSVN (http://tortoisesvn.tigris.org/download.html)
|
||||||
|
|
||||||
* Command line version (http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=91)
|
Step 2: Includes and Libraries
|
||||||
* TortoiseSVN (http://tortoisesvn.tigris.org/download.html)
|
|
||||||
|
|
||||||
|
Put the newly downloaded files in the VC lib and include directories (Where "C:\Program Files\Microsoft Visual Studio\VC98" is your local location of VC)
|
||||||
---Step 2
|
|
||||||
|
|
||||||
Put the newly downloaded files in the VC lib and include directories (Where C:\program files\ is your local location of VC)
|
|
||||||
|
|
||||||
|
|
||||||
* zconf.h [useful.zip]
|
* zconf.h [useful.zip]
|
||||||
* zlib.h [useful.zip]
|
* zlib.h [useful.zip]
|
||||||
* png.h [useful.zip]
|
* png.h [useful.zip]
|
||||||
* pngconf.h [useful.zip]
|
* pngconf.h [useful.zip]
|
||||||
* afxres.h
|
* afxres.h
|
||||||
|
|
||||||
in
|
in
|
||||||
|
|
||||||
C:\Program Files\Microsoft Visual Studio\VC98\Include
|
C:\Program Files\Microsoft Visual Studio\VC98\Include
|
||||||
|
|
||||||
and
|
and
|
||||||
|
|
||||||
* zlibstat.lib [useful.zip]
|
* zlibstat.lib [useful.zip]
|
||||||
* SDL.lib [SDL.zip]
|
* libpng.lib [useful.zip]
|
||||||
* libpng.lib [useful.zip]
|
|
||||||
|
|
||||||
in
|
in
|
||||||
|
|
||||||
C:\Program Files\Microsoft Visual Studio\VC98\Lib
|
C:\Program Files\Microsoft Visual Studio\VC98\Lib
|
||||||
|
|
||||||
|
|
||||||
---Step 3: DirectX SDK
|
Step 3: DirectX SDK
|
||||||
|
|
||||||
(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.
|
(This should work with the latest DirectX SDK as well.)
|
||||||
|
|
||||||
There are 2 folder in the compressed file: Include and Lib
|
There are 2 folder in the compressed file: Include and Lib
|
||||||
|
|
||||||
|
@ -62,16 +58,17 @@ C:\Program Files\Microsoft Visual Studio\VC98\Lib
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
You can also make custom directories, for libraries (.lib) and includes/header files (.h) and add it to the VC paths via:
|
You can also make custom directories, which is recommended so you don't overwrite VS6 files, for libraries (.lib) and includes/header files (.h) and add it to the VC paths via:
|
||||||
|
|
||||||
Tools -> Options -> Directories -> show directories for:
|
Tools -> Options -> Directories -> show directories for:
|
||||||
|
|
||||||
a) include files (the include dir: C:\Program Files\Microsoft Visual Studio\VC98\DirectX 7 SDK\include )
|
a) include files (the include dir: C:\Program Files\Microsoft Visual Studio\VC98\DirectX 8.1 SDK\include )
|
||||||
|
|
||||||
b) library files (the lib dir, C:\Program Files\Microsoft Visual Studio\VC98\DirectX 7 SDK\lib )
|
b) library files (the lib dir, C:\Program Files\Microsoft Visual Studio\VC98\DirectX 8.1 SDK\lib )
|
||||||
|
|
||||||
|
NOTE: make sure that the directory for the DirectX SDK is the first one in the list, above all others, otherwise compilation will most likely fail!!
|
||||||
|
|
||||||
---Step 4
|
Step 4: TTD Graphics files
|
||||||
|
|
||||||
Copy the following files from Transport Tycoon Deluxe to the data folder
|
Copy the following files from Transport Tycoon Deluxe to the data folder
|
||||||
|
|
||||||
|
@ -80,14 +77,14 @@ Copy the following files from Transport Tycoon Deluxe to the data folder
|
||||||
* trgcr.grf
|
* trgcr.grf
|
||||||
* trghr.grf
|
* trghr.grf
|
||||||
* trgir.grf
|
* trgir.grf
|
||||||
* trgtr.grf
|
* trgtr.grf
|
||||||
|
|
||||||
|
|
||||||
---Step 5
|
Step 5: Compiling
|
||||||
|
|
||||||
Open trunk/ttd.dsw
|
Open trunk/openttd.dsw
|
||||||
|
|
||||||
Build menu > Set active configuration > Select: "ttd - Win32 Release with PNG"
|
Build menu > Set active configuration > Select: "openttd - Win32 Release"
|
||||||
|
|
||||||
Compile...
|
Compile...
|
||||||
|
|
||||||
|
@ -96,10 +93,12 @@ Now it should work, it worked for me :)
|
||||||
|
|
||||||
From r1319 you can compile branch/map in Debug mode (by Bociusz)
|
From r1319 you can compile branch/map in Debug mode (by Bociusz)
|
||||||
|
|
||||||
If it's not working, and you checked that you using the newest SVN (!) report to Bociusz on IRC (irc://irc.freenode.net/#openttd)
|
For compiling branch/cargo-packets you have to add cargo.c and .h to this tree's openttd.dsp
|
||||||
|
|
||||||
|
If it's not working, and you checked that you using the newest SVN (!) report to Bociusz on IRC (irc://irc.freenode.net/openttd)
|
||||||
|
|
||||||
Go ahead and make that patch! Happy Hacking! :)
|
Go ahead and make that patch! Happy Hacking! :)
|
||||||
|
|
||||||
Originally written by Dribbel
|
Originally written by Dribbel
|
||||||
|
|
||||||
Project file updating by Bociusz
|
Project file updating by Bociusz
|
||||||
|
|
|
@ -198,13 +198,7 @@ InputPath=.\lang\italian.txt
|
||||||
|
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
SOURCE=.\lang\lithuanian.txt
|
SOURCE=.\lang\lithuanian.txt
|
||||||
# Begin Custom Build
|
# PROP Exclude_From_Build 1
|
||||||
InputPath=.\lang\lithuanian.txt
|
|
||||||
|
|
||||||
"lang\lithuanian.lng" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
|
|
||||||
strgen\debug\strgen.exe lang\lithuanian.txt
|
|
||||||
|
|
||||||
# End Custom Build
|
|
||||||
# End Source File
|
# End Source File
|
||||||
|
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
|
@ -208,7 +208,8 @@
|
||||||
<File
|
<File
|
||||||
RelativePath=".\lang\lithuanian.txt">
|
RelativePath=".\lang\lithuanian.txt">
|
||||||
<FileConfiguration
|
<FileConfiguration
|
||||||
Name="Debug|Win32">
|
Name="Debug|Win32"
|
||||||
|
ExcludedFromBuild="TRUE">
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCCustomBuildTool"
|
Name="VCCustomBuildTool"
|
||||||
Description="Generating lithuanian language file"
|
Description="Generating lithuanian language file"
|
||||||
|
|
Loading…
Reference in New Issue