2000-06-17 11:56:47 +00:00
|
|
|
-----------------------------------------------------------------------
|
2000-05-14 20:49:50 +00:00
|
|
|
Steps to compile standalone on win32 platforms with VC++.
|
|
|
|
|
2000-06-17 11:56:47 +00:00
|
|
|
To compile under "free" Borland C++, see couple of paragraphs below.
|
|
|
|
|
2000-05-14 20:49:50 +00:00
|
|
|
1) either: (reccommended)
|
|
|
|
download and install MGL for VC++. it is available from Scitech at
|
|
|
|
http://www.scitechsoft.com
|
|
|
|
|
|
|
|
IMPORTANT: make sure you add the mgl include and lib paths to VC++'s
|
|
|
|
options in Tools->Options->Directories
|
|
|
|
|
|
|
|
// Tonik: latest MGL from Scitech seems to have a couple of bugs,
|
|
|
|
like F10 and alt keys not working :(
|
|
|
|
|
|
|
|
or:
|
|
|
|
if you don't feel like downloading the latest version of the MGL,
|
|
|
|
which is very highly recommended, you can get the scitech directory
|
|
|
|
from the q1source.zip file, rename the MGLLT.LIB file in it to
|
|
|
|
MGLFX.LIB, and put the appropriate paths into VC++'s options, as
|
|
|
|
above.
|
|
|
|
|
2000-09-28 19:52:46 +00:00
|
|
|
also:
|
|
|
|
download the source for zlib from http://www.info-zip.org/pub/infozip/zlib/
|
|
|
|
and build a static library named zlib.lib (also, build a debug version named
|
|
|
|
zlibd.lib if you plan to build the debug targets.). put the lib files in a
|
|
|
|
directory together, and add it to the MSVC libraries path, and add the
|
|
|
|
directory with the zlib source code to the include paths (see above)
|
|
|
|
|
|
|
|
or:
|
|
|
|
open include/vc/config.h and change the line that reads
|
|
|
|
#define HAS_ZLIB
|
|
|
|
to
|
|
|
|
#undef HAS_ZLIB
|
|
|
|
and remove zlib.lib and zlibd.lib from the project settings
|
|
|
|
(not reccommended)
|
|
|
|
|
2000-05-14 20:49:50 +00:00
|
|
|
2) Build the gas2masm Debug program first. all the other targets depend
|
|
|
|
on this one.
|
|
|
|
|
|
|
|
3) Build the other targets.
|
2000-06-17 11:56:47 +00:00
|
|
|
|
|
|
|
-----------------------------------------------------------------------
|
|
|
|
COMPILING QUAKEFORGE TREE (http://quake.sourceforge.net)
|
|
|
|
UNDER BORLAND C++ 5.02 and 5.5
|
|
|
|
|
2000-06-27 06:09:49 +00:00
|
|
|
0) Get latest Quakeforge CVS snapshot if you don't have it already.
|
2000-06-17 11:56:47 +00:00
|
|
|
|
|
|
|
1) Get and install latest SCITECH MGL (http://www.scitechsoft.com), you
|
2000-07-30 10:25:27 +00:00
|
|
|
don't need to install sources and demo's, just libraries and includes.
|
2000-06-17 11:56:47 +00:00
|
|
|
|
2000-07-30 10:25:27 +00:00
|
|
|
2) If you want to compile SDL/SGL targets, you also need to get SDL sdk
|
|
|
|
(http://www.libsdl.org)
|
|
|
|
|
|
|
|
3) Get and install Dirext-X 7.0 libraries and header files
|
2000-06-17 11:56:47 +00:00
|
|
|
(headers http://www.microsoft.com/downloads/release.asp?ReleaseID=12471)
|
|
|
|
(borland lib: http://www.microsoft.com/downloads/release.asp?ReleaseID=17051)
|
|
|
|
|
2000-07-30 10:25:27 +00:00
|
|
|
4) If you don't have Borland complier (5.02 or 5.5), get and install
|
2000-06-27 06:09:49 +00:00
|
|
|
FREE Borland C++ complier 5.5.
|
2000-06-17 11:56:47 +00:00
|
|
|
(http://www.borland.com/bcppbuilder/freecompiler/)
|
|
|
|
|
2000-07-30 10:25:27 +00:00
|
|
|
5) For GL targets, you'll need to have import library for OPENGL stuffs
|
2000-06-17 11:56:47 +00:00
|
|
|
one coming with Borland C++ itself is screwed!
|
|
|
|
|
|
|
|
implib -c -f opengl32.lib c:\windows\system\opengl32.dll
|
|
|
|
|
2000-07-30 10:25:27 +00:00
|
|
|
6) If you want to compile SDL/SGL, you HAVE to run:
|
|
|
|
|
|
|
|
implib -a -c sdl.lib sdl.dll (in sdlsdk directory where sdl.dll is located)
|
|
|
|
|
|
|
|
7) Borland preprocessor can't process quake .S files. You need to get
|
2000-06-17 11:56:47 +00:00
|
|
|
.ASM files or use some other complier to preprocess them. .ASM files
|
|
|
|
must be placed on SOURCE dir.
|
2000-06-27 06:09:49 +00:00
|
|
|
(http://www.saunalahti.fi/~mipes/qf-asms.zip)
|
2000-06-17 11:56:47 +00:00
|
|
|
|
2000-07-30 10:25:27 +00:00
|
|
|
8) You need to have either MASM or TASM to compile ASM files.
|
2000-06-17 11:56:47 +00:00
|
|
|
(For MASM: http://www.microsoft.com/ddk/download/98/BINS_DDK.EXE)
|
|
|
|
(MASM patch: http://support.microsoft.com/support/kb/articles/Q228/4/54.asp)
|
|
|
|
|
2000-07-30 10:25:27 +00:00
|
|
|
9) Check all paths in all makefiles and correct them to suit your system.
|
2000-06-17 11:56:47 +00:00
|
|
|
|
2000-07-30 10:25:27 +00:00
|
|
|
10) When everything else is done, just start making
|
2000-06-17 11:56:47 +00:00
|
|
|
|
|
|
|
cd source
|
|
|
|
make -fqf-client-win
|
|
|
|
make -fqf-client-wgl
|
|
|
|
...
|
|
|
|
and you should be on your way.
|
|
|
|
|
2000-06-27 06:09:49 +00:00
|
|
|
-----------------------------------------------------------------------
|
|
|
|
|
|
|
|
For BC 5.5 complier and linker options or for using BC 5.5 under 5.02 IDE:
|
|
|
|
http://nextera.sirma.bg/knowledgebase/
|
|
|
|
|
|
|
|
For FREE IDE for your BC 5.5:
|
|
|
|
http://www.objectcentral.com/vide.htm
|
|
|
|
|
|
|
|
-----------------------------------------------------------------------
|