[血泪]一个 Linux Gamer 的日记

博客记录了在Linux系统下运行游戏/opt/games/glest/glest时遇到的一系列问题,包括段错误、无法初始化SDL、找不到共享库、无法打开音频设备等,还尝试了多种解决方法,如设置环境变量、使用gdb调试等,但最终游戏仍存在图像问题。

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

$ /opt/games/glest/glest
/opt/games/glest/glest: line 89:  3199 Segmentation fault      ./$GAME_BINARY $CMD_ARGS "$@"
$ XIM=xim /opt/games/glest/glest
/opt/games/glest/glest: line 89:  3205 Segmentation fault      ./$GAME_BINARY $CMD_ARGS "$@"
 $ env -i /opt/games/glest/glest
Couldn't initialize SDL: Unable to open a console terminal
/opt/games/glest/glest: line 93: setxkbmap: command not found
$ env -u XIM -u XIM_PROGRAM -u XIM_ARGS -u GTK_IM_MODULE /opt/games/glest/glest
/opt/games/glest/glest: line 89:  3222 Segmentation fault      ./$GAME_BINARY $CMD_ARGS "$@"
$ less /opt/games/glest/glest
$ /opt/games/glest/glest.bin
/opt/games/glest/glest.bin: error while loading shared libraries: libxerces-c.so.23: cannot open shared object file: No such file or directory
$ LD_LIBRARY_PATH=/opt/games/glest/lib /opt/games/glest/glest.bin
Segmentation fault
$ ulimit -c unlimited
$ LD_LIBRARY_PATH=/opt/games/glest/lib /opt/games/glest/glest.bin
Segmentation fault (core dumped)
 $ env LD_LIBRARY_PATH=/opt/games/glest/lib gdb /opt/games/glest/glest.bin -c core.3246
(此处省略 200K 输出)
$ export SDL_AUDIODRIVER=esd
$  /opt/games/glest/glest
open /dev/[sound/]dsp: Device or resource busy
OpenAL Vendor: J. Valenzuela
OpenAL Version: 0.0.7
OpenAL Renderer: Software
OpenAl Extensions: Software
Exception: Couldn't open audio device.
$ export SDL_AUDIODRIVER=alsa
$  /opt/games/glest/glest
open /dev/[sound/]dsp: Device or resource busy
OpenAL Vendor: J. Valenzuela
OpenAL Version: 0.0.7
OpenAL Renderer: Software
OpenAl Extensions: Software
Exception: Couldn't open audio device.
$ export SDL_AUDIODRIVER=null
$  /opt/games/glest/glest
Couldn't process event: Your system doesn't support 3 texture units, required for shadows
Couldn't process event: Mouse Button > 3 not handled.
Couldn't process event: Mouse Button > 3 not handled.

-------------
补记:这里算是进去了,没有声音,看到菜单。进入游戏之后灰白一片,图像有问题……懒得折腾了,pkill ; rm -rf
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值