Back home

Building WinQuake for Linux

This tutorial describes how to build squake and quake.x11. I don't have a 3dfx card, so I won't go into building qlquake.3dfxgl ( although it should relatively straight forward if you've got everything installed ). I will try glquake in a later installment.

My system is a Redhat 6.1 on a Celeron 300A ( clocked at 450 ) with 128MB RAM. I have a Soundblaster AWE 64. I'm running kernel version 2.3.25.

Building squake and quake.x11

  1. cp q1source.zip to a directory ( for the purpose of this tutorial, I'm assuming "/usr/src" ) and unzip q1source.zip. Once q1source.zip is unpacked, you should have two directories, QW for QuakeWorld and WinQuake for, you guessed it: WinQuake! There's also a couple text files, including the GPL license.
  2. cd /usr/src/WinQuake and mv Makefile.linuxi386 Makefile ( I couldn't get make -f Makefile.i386 to work, so renaming to Makefile is the easiest thing to do... )
  3. Now, we need to edit Makefile ( using vi or emacs or whatever ). We have to make a few system-specific modifications, so here goes:
  4. Now, from "/usr/src/WinQuake", type make build_release or make build_debug. This should build the release version of Quake.
  5. That's it! Check "/usr/src/WinQuake/releasei386.glibc/bin" and your targets, in this case squake and quake.x11 should be in there!

Building the quake rpm

  1. This part is a pain...
  2. edit quake.spec.sh and remove any of the targets ( and libs ) you didn't create.
  3. If you're building from the shareware version, comment-out any references to pak1.pak by editing quake-data.spec and Makefile.
  4. If you don't have hipnotic and/or rogue, comment out those targets on line 1108 ( i.e. the line defining rpm: ).
  5. This is strange, but all the files in "/usr/src/WinQuake/data" are in upper-case, but they're referenced in lower case, so mv 'em all to lower case.
  6. su to root and from "/usr/src/WinQuake", type make rpm.
  7. This should create two rpm files ( quake and quake-data ) in "/usr/src/WinQuake/RPMS".
  8. Use rpm -Uvh quake*.rpm to install!

Questions and Comments to:church@webzone.net