Brian Paul | 4732a6b | 1998-07-29 01:15:40 +0000 | [diff] [blame^] | 1 | |
| 2 | Info on using Mesa 3.0 with Linux Quake I and Quake II |
| 3 | |
| 4 | |
| 5 | |
| 6 | Disclaimer |
| 7 | ---------- |
| 8 | |
| 9 | I am _not_ a Quake expert by any means. I pretty much only run it to |
| 10 | test Mesa. There have been a lot of questions about Linux Quake and |
| 11 | Mesa so I'm trying to provide some useful info here. If this file |
| 12 | doesn't help you then you should look elsewhere for help. The Mesa |
| 13 | mailing list or the news://news.3dfx.com/3dfx.linux.glide newsgroup |
| 14 | might be good. |
| 15 | |
| 16 | Again, all the information I have is in this file. Please don't email |
| 17 | me with questions. |
| 18 | |
| 19 | If you have information to contribute to this file please send it to |
| 20 | me at brianp@elastic.avid.com |
| 21 | |
| 22 | |
| 23 | |
| 24 | Linux Quake |
| 25 | ----------- |
| 26 | |
| 27 | You can get Linux Quake from http://www.idsoftware.com/ |
| 28 | |
| 29 | Quake I and II for Linux were tested with, and include, Mesa 2.6. You |
| 30 | shouldn't have too many problems if you simply follow the instructions |
| 31 | in the Quake distribution. |
| 32 | |
| 33 | |
| 34 | |
| 35 | RedHat 5.0 Linux problems |
| 36 | ------------------------- |
| 37 | |
| 38 | RedHat Linux 5.x uses the GNU C library ("glibc" or "libc6") whereas |
| 39 | previous RedHat and other Linux distributions use "libc5" for its |
| 40 | runtime C library. |
| 41 | |
| 42 | Linux Quake I and II were compiled for libc5. If you compile Mesa |
| 43 | on a RedHat 5.x system the resulting libMesaGL.so file will not work |
| 44 | with Linux Quake because of the different C runtime libraries. |
| 45 | The symptom of this is a segmentation fault soon after starting Quake. |
| 46 | |
| 47 | If you want to use a newer version of Mesa (like 3.x) with Quake on |
| 48 | RedHat 5.x then read on. |
| 49 | |
| 50 | The solution to the C library problem is to force Mesa to use libc5. |
| 51 | libc5 is in /usr/i486-linux-libc5/lib on RedHat 5.x systems. |
| 52 | |
| 53 | Emil Briggs (briggs@tick.physics.ncsu.edu) nicely gave me the following |
| 54 | info: |
| 55 | |
| 56 | > I only know what works on a RedHat 5.0 distribution. RH5 includes |
| 57 | > a full set of libraries for both libc5 and glibc. The loader ld.so |
| 58 | > uses the libc5 libraries in /usr/i486-linux-libc5/lib for programs |
| 59 | > linked against libc5 while it uses the glibc libraries in /lib and |
| 60 | > /usr/lib for programs linked against glibc. |
| 61 | > |
| 62 | > Anyway I changed line 41 of mklib.glide to |
| 63 | > GLIDELIBS="-L/usr/local/glide/lib -lglide2x -L/usr/i486-linux-libc5/lib" |
| 64 | > |
| 65 | > And I started quake2 up with a script like this |
| 66 | > #!/bin/csh |
| 67 | > setenv LD_LIBRARY_PATH /usr/i486-linux-libc5/lib |
| 68 | > setenv MESA_GLX_FX f |
| 69 | > ./quake2 +set vid_ref gl |
| 70 | > kbd_mode -a |
| 71 | > reset |
| 72 | |
| 73 | |
| 74 | I've already patched the mklib.glide file. You'll have to start Quake |
| 75 | with the script shown above though. |
| 76 | |
| 77 | |
| 78 | |
| 79 | ---------------------------------------------------------------------- |
| 80 | $Id: README.QUAKE,v 1.1 1998/07/29 01:15:40 brianp Exp $ |