From: "Chris Murray" Newsgroups: comp.os.msdos.djgpp References: <3B7AC29A DOT 9080305 AT edu DOT stadia DOT fi> Subject: Re: Compiling Quake Lines: 159 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Message-ID: Date: Wed, 22 Aug 2001 07:59:43 GMT NNTP-Posting-Host: 62.31.166.35 X-Complaints-To: http://www.blueyonder.co.uk/abuse X-Trace: news1.cableinet.net 998467183 62.31.166.35 (Wed, 22 Aug 2001 08:59:43 BST) NNTP-Posting-Date: Wed, 22 Aug 2001 08:59:43 BST Organization: blueyonder (post doesn't reflect views of blueyonder) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Thanks for your reply .. somehow I got it way after all the others .. but it makes much more sense now. Which compiler did id use for (dos) Quake do you know? And WinQuake (you think VC?) And I see what you mean about the memory (eg "only -53 mb available") .. I just restart the computer! I wouldnt have a clue where to start looking to fix it. Thanks again Chris "Antti Koskipaa" wrote in message news:3B7AC29A DOT 9080305 AT edu DOT stadia DOT fi... > 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 > > >