Hi All,

As you probably all know the source for quake III arena has been released. So 
i figured i give it a shot. After some googling i found the instructions to 
build it. I've tried them, and it indeed worked, i have now a fully working 
quake3 on my system.

Here's how i've done it:
1-Download the source (Thanks locke!):
 ftp://ftp.demon.co.uk/pub...e/quake3-1.32b-source.zip

2-unpack and modify the code so it compiles with gcc-3.4.1:

bash-3.00$ unzip -q quake3-1.32b-source.zip
bash-3.00$ cd quake3-1.32b
bash-3.00$ vi code/Construct

replace this:
{
  # use -Werror for better QA  
  $BASE_CFLAGS = $COMMON_CFLAGS . '-g -Wall -Werror -O ';
        $BSPC_BASE_CFLAGS = $COMMON_CFLAGS . '-g -O -DLINUX -DBSPC 
-Dstricmp=strcasecmp ';
}

by this:
{
  # use -Werror for better QA  
  $BASE_CFLAGS = $COMMON_CFLAGS . '-g -Wall -O ';
        $BSPC_BASE_CFLAGS = $COMMON_CFLAGS . '-g -O -DLINUX -DBSPC 
-Dstricmp=strcasecmp ';
}

bash-3.00$ cd lcc/src/ && perl -pi.bk -e 's/\r//' *.md && cd ../..
bash-3.00$ cd code/game && perl -pi.bk -e 's/\r//' *.c *.h && cd ../..
bash-3.00$ vi lcc/cpp/lex.c

replace this: (line 56)
START,  { ' ', '\t', '\v' },    WS1,
by this:
START, { ' ', '\t', '\v', '\r' }, WS1,

and replace this: (line 170)
WS1,    { ' ', '\t', '\v' },    WS1,
by this:
WS1, { ' ', '\t', '\v', '\r' }, WS1,

bash-3.00$ vi code/cgame/cg_servercmds.c
replace this: (line 942 and 943)
if (cg_noTaunt.integer != 0) {
                if (!strcmp(cmd, VOICECHAT_KILLINSULT)  || !strcmp(cmd, 
VOICECHAT_TAUNT) || \
                        !strcmp(cmd, VOICECHAT_DEATHINSULT) || !strcmp(cmd, 
VOICECHAT_KILLGAUNTLET) || \
                        !strcmp(cmd, VOICECHAT_PRAISE)) {
                        return;
                }
        }

by this:
if (cg_noTaunt.integer != 0) {
                if (!strcmp(cmd, VOICECHAT_KILLINSULT)  || !strcmp(cmd, 
VOICECHAT_TAUNT) || 
                        !strcmp(cmd, VOICECHAT_DEATHINSULT) || !strcmp(cmd, 
VOICECHAT_KILLGAUNTLET) || 
                        !strcmp(cmd, VOICECHAT_PRAISE)) {
                        return;
                }
        }

3- compile the source:
bash-3.00$ cd lcc/ && make all && cd ..
bash-3.00$ cd q3asm/ && make && cd ..
bash-3.00$ cd code/ && perl unix/cons && cd ..

4- Install the game:
The compiled gamefiles can be found here:
code/install.

To get a working game, copy the pak?.pk3 files from the windows Quake3 CD to 
the directory code/install/baseq3.

To run goto the directory code/install and type ./linuxquake3


I didn't dream up the solution myself, i found them on the following web page.
http://www.linuxgames.com/news/feedback.php?identiferID=7750&action=flatview

Greetz,
Cedric
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-chat
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to