www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/08/15/14:46:55

Message-ID: <3B7AC29A.9080305@edu.stadia.fi>
From: Antti Koskipaa <antti DOT koskipaa AT edu DOT stadia DOT fi>
User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:0.9.2) Gecko/20010628
X-Accept-Language: en-us
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Compiling Quake
References: <I5xe7.8613$6R6 DOT 909045 AT news1 DOT cableinet DOT net>
Lines: 140
Date: Wed, 15 Aug 2001 21:42:34 +0300
NNTP-Posting-Host: 212.38.225.30
X-Trace: uutiset.nic.fi 997900895 212.38.225.30 (Wed, 15 Aug 2001 21:41:35 EET DST)
NNTP-Posting-Date: Wed, 15 Aug 2001 21:41:35 EET DST
Organization: NIC Tietoverkot Oy - NIC Data Networks Ltd.
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Chris Murray wrote:

> First of all, I would like to apologise for the number of times this subject
> has probably appeared in this group, but I have no idea how to compile Quake
> with djgpp or where to start.


I have also answered this question numerous times :)

Here's how you do it:
- unpack the source anchive with subdirectories.
- go to "winquake" -directory.
- look at sys_dos.c line 61. it says "static qboolean IsDedicated;". 
Remove the "static" keyword.
- Compile the files. If you use 4DOS, run this batch file:

compile.bat:
gcc -c %& cd_audio.c
gcc -c %& chase.c
gcc -c %& cl_demo.c
gcc -c %& cl_input.c
gcc -c %& cl_main.c
gcc -c %& cl_parse.c
gcc -c %& cl_tent.c
gcc -c %& cmd.c
gcc -c %& common.c
gcc -c %& console.c
gcc -c %& crc.c
gcc -c %& cvar.c
gcc -c %& d_copy.S
gcc -c %& d_draw.S
gcc -c %& d_draw16.S
gcc -c %& d_edge.c
gcc -c %& d_fill.c
gcc -c %& d_init.c
gcc -c %& d_modech.c
gcc -c %& d_part.c
gcc -c %& d_parta.S
gcc -c %& d_polysa.S
gcc -c %& d_polyse.c
gcc -c %& d_scan.c
gcc -c %& d_scana.S
gcc -c %& d_sky.c
gcc -c %& d_spr8.S
gcc -c %& d_sprite.c
gcc -c %& d_surf.c
gcc -c %& d_vars.c
gcc -c %& d_varsa.S
gcc -c %& d_zpoint.c
gcc -c %& dos_v2.c
gcc -c %& dosasm.S
gcc -c %& draw.c
gcc -c %& host.c
gcc -c %& host_cmd.c
gcc -c %& in_dos.c
gcc -c %& keys.c
gcc -c %& math.S
gcc -c %& mathlib.c
gcc -c %& menu.c
gcc -c %& model.c
gcc -c %& mplib.c
gcc -c %& mplpc.c
gcc -c %& net_dgrm.c
gcc -c %& net_dos.c
gcc -c %& net_ipx.c
gcc -c %& net_loop.c
gcc -c %& net_main.c
gcc -c %& net_mp.c
gcc -c %& net_ser.c
gcc -c %& net_vcr.c
gcc -c %& net_bw.c
gcc -c %& nonintel.c
gcc -c %& pr_cmds.c
gcc -c %& pr_edict.c
gcc -c %& pr_exec.c
gcc -c %& r_aclip.c
gcc -c %& r_aclipa.S
gcc -c %& r_alias.c
gcc -c %& r_aliasa.S
gcc -c %& r_bsp.c
gcc -c %& r_draw.c
gcc -c %& r_drawa.S
gcc -c %& r_edge.c
gcc -c %& r_edgea.S
gcc -c %& r_efrag.c
gcc -c %& r_light.c
gcc -c %& r_main.c
gcc -c %& r_misc.c
gcc -c %& r_part.c
gcc -c %& r_sky.c
gcc -c %& r_sprite.c
gcc -c %& r_surf.c
gcc -c %& r_vars.c
gcc -c %& r_varsa.S
gcc -c %& sbar.c
gcc -c %& screen.c
gcc -c %& snd_dma.c
gcc -c %& snd_dos.c
gcc -c %& snd_gus.c
gcc -c %& snd_mem.c
gcc -c %& snd_mix.c
gcc -c %& snd_mixa.S
gcc -c %& surf16.S
gcc -c %& surf8.S
gcc -c %& sv_main.c
gcc -c %& sv_move.c
gcc -c %& sv_phys.c
gcc -c %& sv_user.c
gcc -c %& sys_dos.c
gcc -c %& sys_dosa.S
gcc -c %& vid_dos.c
gcc -c %& vid_ext.c
gcc -c %& vid_vga.c
gcc -c %& view.c
gcc -c %& vregset.c
gcc -c %& wad.c
gcc -c %& world.c
gcc -c %& worlda.S
gcc -c %& zone.c
gcc -o %& quake.exe *.o
----batch file ends here.

The "%&" is 4DOS syntax and means "all command line parameters to the 
batch file".

I just tried and it compiles with GCC 3.0. You WILL get crashes when you 
run it, anybody want to explain that ugly memory management stuff?


> Will I be able to compile WinQuake with djgpp as well?


No. I doubt the win version will compile with anything else than MSVC. 
You're welcome to try.

--
- Antti



- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019