-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILDING
62 lines (55 loc) · 3.27 KB
/
BUILDING
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
Building - May 2nd, 2004 release
-------------------------------------
Currently, only building under Windows using Microsoft Visual Studio is
supported. Preliminary work getting things to compile under *nix with
gcc and mono has been done, but it's currently a low priority.
It wasn't until I tried writing these directions that I realized just how
complicated building the library from scratch is. Though it's complicated,
most of the steps only need to be done once. I'll try to simplify it, but
for now, I'll just release it as-is.
If you simply want to develop using the library, I highly recommend you
download the prebuilt binary packages.
If you want to build it yourself, continue on.
Building under Visual Studio .NET
---------------------------------
1) Download the latest SDL development package from https://www.libsdl.org.
The version I used to build the binary release was 1.2.8, available
from this URL: https://www.libsdl.org/release/SDL-devel-1.2.8-VC6.zip
2) Download the latest vorbis development library for Windows from
https://www.vorbis.com/download.psp. I'd recommend the "Ogg Vorbis Win32
SDK".
2) Unpack the SDL and vorbis libraries somewhere.
3) Edit the "Additional Include Directories" path (C++ -> General) for the
Mixer, Utility, and VorbisWrapper to reference wherever you put the SDL
and oggvorbis include files. Remember to make the changes for both debug
and release builds.
4) Edit the "Additional Library Directories" path (Linker -> General) for
those libraries to reference where you put the SDL and oggvorbis
libraries. Remember to make the changes for both debug and release builds.
5) You'll need a copy of perl installed. I recommend ActiveState perl from
https://www.activestate.com/. It should be installed so that perl is in
your path, but if you don't want to do that, then you'll need to edit the
"callconvhack.bat" file that comes with the GameLib source so that it can
find your copy of perl.
6) You'll need at least version 1.1.4322 of the .NET framework from
Microsoft, available here: https://www.microsoft.com/net/
If you want to use a version other than the one above, you'll need to edit
the "callconvhack.bat" file to reference the new version.
7) Build the GameLib, Mixer, Utility, VorbisWrapper, and libsoundfile
projects. You should be able to use the project files I've included along
with the source. You may want to create a solution containing them so they
can be built all at once.
8) If you want to build the documentation, you'll need a program to convert
the GameLib.dll and GameLib.xml files output by Visual Studio into the
actual help files. I use NDoc (from https://ndoc.sourceforge.net/), and
have included an NDoc project file.
9) In order to use the library, you'll still need the DLLs from the
SDL_image, SDL_ttf, SDL_gfx libraries, from the following URLs:
https://www.libsdl.org/projects/SDL_image/
https://www.libsdl.org/projects/SDL_ttf/
https://www.ferzkopp.net/~aschiffler/Software/SDL_gfx-2.0/
(you'll need to build this one)
The SDL_gfx DLL is called sdlgfx.dll.
Or, you can just get them from the binary release of GameLib.
10) Take a look at the README file for instructions on using the library.
Now, don't you wish you'd just used the prebuilt package? :-)