Compile quake2 at linux

本文记录了在Arch Linux环境下成功编译Quake2源码的过程。主要修改包括:调整Makefile设置、添加编译目标、修正部分源文件中的大小写敏感问题等。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

  Ahhhh,my arch linux permission me only english input method,and therefore write this article in english.

  John Carmack released quake2 source code, and only windows version can be compiled correctly.

I modified the makefile and compiled it at my arch linux finally,just record the modified step here.

1 cp QUAKE2_SOURCE_CODE_PATH/linux/makefile.i386 ../makefile

2  Modify the makefile.set MOUNT_DIR=your quake2 source code path

3  Find "QUAKE2_OBJS = ",appending following code

    $(BUILD_DIR)/client/cl_newfx.o

4  Appending this sentence relevantly:

    $(BUILD_DIR)/client/cl_newfx.o : $(CLIENT_DIR)/cl_newfx.c

      $(DO_CC)

5 at ctf/g_items.c line 43

  modify this code block

  static int jacket_armor_index;

  static int combat_armor_index;

  static int body_armor_index;

    to

    static jacket_armor_index=0;

  static combat_armor_index=0;

  static body_armor_index=0;

6 at linux/vid_menu.c modify all stricmp to strcasecmp

7 at linux/net_udp.c modify all stricmp to strcasecmp

 


  

转载于:https://www.cnblogs.com/billin/archive/2012/04/11/2442339.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值