-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathINSTALL.msvc
159 lines (128 loc) · 6.2 KB
/
INSTALL.msvc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
This file describes step-by-step how to use Microsoft Visual C++ to build
The Ur-Quan Masters. It assumes you want to install the Microsoft Visual C++
Express Edition, which can be downloaded for free from Microsoft.
If you already have another version of MSVC++ installed, you can skip step 1,
and you do not need to add the Platform SDK paths to the include and library
locations in steps 5.2 and 5.3.
The files and locations are for compilation on 32 bits systems; on 64 bits
systems some will be slightly different.
1. Install the Microsoft development environment
1.1. Install Microsoft Visual C++ 2008 Express Edition:
- Download the installer from
http://www.microsoft.com/downloads/details.aspx?familyid=94de806b-e1a1-4282-abc5-1f7347782553
- Run the installer, and follow the instructions. There's no need
to register your copy of MSVC++ to use it for compiling UQM.
1.2. Install the Microsoft Windows Platform SDK:
- Download the installer from
http://www.microsoft.com/downloads/details.aspx?FamilyId=0BAF2B35-C656-4969-ACE8-E4C0C0716ADB
or a newer version of the SDK
- Run the installer, and follow the instructions.
2. Install the tools needed to install all the requirements:
2.1. Install TortoiseSVN, a Subversion client which we will use to check out the most
recent development version of the UQM source:
- Download the installer from http://tortoisesvn.net/downloads
- Run the installer, and follow the instructions
2.2. Install WinZip, if you cannot open .zip files natively:
- Download WinZip from http://www.winzip.com/downwzeval.htm
- Run the installer, and follow the instructions
3. Install the dependencies
3.1. Prepare the build location
Create a folder "Build" in "C:\"; this is where we will put our dependency
packages.
3.2 Install the SDL SDK:
- Download SDL-devel-1.2.14-VC6.zip from
http://www.libsdl.org/download-1.2.php
- Unzip ("Extract" in WinZip) the file in "C:\Build"
A folder "SDL-1.2.14" will be created.
3.3 Install the SDL_image SDK:
- Download SDL_image-devel-1.2.10-VC.zip from
http://www.libsdl.org/projects/SDL_image/
- Unzip ("Extract" in WinZip) the file in "C:\Build"
A folder "SDL_image-1.2.10" will be created.
3.4 Install the Ogg Vorbis SDK
- Download
http://www.vorbis.com/files/1.0.1/windows/OggVorbis-win32sdk-1.0.1.zip
- Unzip ("Extract" in WinZip) the file in "C:\Build"
A folder "oggvorbis-win32sdk-1.0.1" will be created.
3.5 Install zlib:
- Download zlib123-dll.zip ("zlib compiled DLL") from
http://www.gzip.org/zlib/
- Create a folder "zlib-1.2.5" in "C:\Build\"
- Unzip "zlib125-dll.zip" in C:\Build\zlib-1.2.5\"
3.6 Install OpenAL
- Download http://connect.creativelabs.com/openal/Downloads/OpenAL11CoreSDK.zip
- Unzip and run the installer and follow the instructions
- Create a directory "AL" in "C:\Program Files\OpenAL 1.1 SDK\include"
- Copy all the .h files from "C:\Program Files\OpenAL 1.1 SDK\include"
into the newly created "AL" directory.
4. Install the UQM files
4.1. Checkout the UQM source
- Open the folder "C:\"
- Right click on "Build", and select "SVN Checkout..."
- In the "URL of repository" field input
https://sc2.svn.sourceforge.net/svnroot/sc2/trunk/sc2/
- In the "Checkout directory" field input
C:\Build\sc2
- Press ok and the checkout will begin. This may take a while.
A folder "sc2" will be created in "C:\Build\".
4.2. Copy the runtime libraries where they can be found by UQM when run
from MSVC++.
- Copy the following files to "C:\Build\sc2\":
- "C:\Build\SDL-1.2.14\lib\SDL.dll"
- "C:\Build\SDL_image-1.2.10\lib\jpeg.dll"
- "C:\Build\SDL_image-1.2.10\lib\libpng12-0.dll"
- "C:\Build\SDL_image-1.2.10\lib\libtiff-3.dll"
- "C:\Build\SDL_image-1.2.10\lib\SDL_image.dll"
- "C:\Build\SDL_image-1.2.10\lib\zlib1.dll"
- "C:\Build\oggvorbis-win32sdk-1.0.1\bin\ogg.dll"
- "C:\Build\oggvorbis-win32sdk-1.0.1\bin\ogg_d.dll"
- "C:\Build\oggvorbis-win32sdk-1.0.1\bin\vorbis.dll"
- "C:\Build\oggvorbis-win32sdk-1.0.1\bin\vorbis_d.dll"
- "C:\Build\oggvorbis-win32sdk-1.0.1\bin\vorbisenc.dll"
- "C:\Build\oggvorbis-win32sdk-1.0.1\bin\vorbisenc_d.dll"
- "C:\Build\oggvorbis-win32sdk-1.0.1\bin\vorbisfile.dll"
- "C:\Build\oggvorbis-win32sdk-1.0.1\bin\vorbisfile_d.dll"
5. Set up the The Ur-Quan Masters project in Visual C++
5.1. Import the VC6 .dsp file:
- Open C:\Build\sc2\build\msvc6\ and double-click on "UrQuanMasters.dsp".
Visual C++ will start. Confirm when it asks to convert the VC6 .dsp file.
5.2. Setup the additional include locations for the project:
- Still in MSVC++, right click on 'UrQuanMasters' in the Solution Explorer,
and choose "Properties"
- In the left part of the screen, select "Configuration Properties", then
"C/C++", and then "General"
- In the right part, select "Additional Include Directories", then click on
"..."
- Add the paths to the "include" folders of all of the dependency
libraries:
- "C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include"
- "C:\Build\SDL-1.2.14\include"
- "C:\Build\SDL_image-1.2.10\include"
- "C:\Build\oggvorbis-win32sdk-1.0.1\include"
- "C:\Program Files\OpenAL 1.1 SDK\include"
- "C:\Build\zlib-1.2.5\include"
5.3. Setup the additional library locations for the project:
- Still in the project properties pages, in the left part of the screen,
click on "Linker", then "General"
- In the right part, select "Additional Library Directories", then click on
"..."
- Add the paths to the "lib" folders of all of the dependency
libraries:
- "C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib"
- "C:\Build\SDL-1.2.14\lib"
- "C:\Build\SDL_image-1.2.10\lib"
- "C:\Build\oggvorbis-win32sdk-1.0.1\lib"
- "C:\Program Files\OpenAL 1.1 SDK\libs\Win32"
- "C:\Build\zlib-1.2.5\lib"
5.4. Remove unnecessary dependencies
- Still in the "Linker" part of the project properties pages, in the left
part of the screen, click on "Input".
- In the right part, select "Additional Dependencies", then click on "..."
- Remove odbc32.lib and odbccp32.lib
5.5. Add user32.lib
- Still in "Additional Dependencies", add "user32.lib"
6. Build The Ur-Quan Masters
- Still inside MSVC++, press F7
If MSVC++ asks to save the project, confirm.
If everything is right, you should now have a working uqm executable.
You can press F5 to run it from MSVC++.