gpt4 book ai didi

linux - ubuntu 上的 Scons/Doom 3 编译错误

转载 作者:IT王子 更新时间:2023-10-29 00:41:37 29 4
gpt4 key购买 nike

当我从提取的源代码树中的 neo 文件夹运行 scons 命令时,我得到以下输出:

nroach44@ASUS-P5G43T-U1110:~/Source/doom3engine/neo$ scons
scons: Reading SConscript files ...
Loading build configuration from site.conf:
BUILD_GAMEPAK='0'
JOBS='1'
DEDICATED='0'
SILENT='0'
GL_HARDLINK='0'
ID_MCHECK='2'
BUILD_ROOT='build'
ALSA='1'
CC='gcc'
TARGET_D3XP='1'
TARGET_CORE='1'
BUILD='debug'
TARGET_GAME='1'
TARGET_MONO='0'
BASEFLAGS=''
CXX='g++'
NOCURL='0'
DEBUG_MEMORY='0'
IDNET_HOST=''
LIBC_MALLOC='1'
ID_NOLANADDRESS='0'
TARGET_DEMO='0'
AttributeError: 'SConsEnvironment' object has no attribute 'M4':
File "/home/nroach44/Source/doom3engine/neo/SConstruct", line 422:
SConscript( g_build + '/core/glimp/sys/scons/SConscript.gl' )
File "/usr/lib/scons/SCons/Script/SConscript.py", line 614:
return method(*args, **kw)
File "/usr/lib/scons/SCons/Script/SConscript.py", line 551:
return _SConscript(self.fs, *files, **subst_kw)
File "/usr/lib/scons/SCons/Script/SConscript.py", line 260:
exec _file_ in call_stack[-1].globals
File "/home/nroach44/Source/doom3engine/neo/build/debug/core/glimp/sys/scons/SConscript.gl", line 69:
gl_env.M4( i_m4, i_m4 + '.m4' )

我不知道它是否缺少某些东西,没有引用某些东西或什么。从新提取到新文件夹中也会发生这种情况。

谢谢!

最佳答案

sudo apt-get install m4

那个对我来说已经解决的问题...

然后我得到:

scons: done reading SConscript files. scons: Building targets ... scons: building associated VariantDir targets: build/debug/core/glimp build/debug/core build/debug/game build/debug/d3xp g++ -o build/debug/d3xp/d3xp/AF.os -c -fPIC -pipe -Wall -Wno-unknown-pragmas -fmessage-length=0 -fpermissive -fvisibility=hidden -m32 -g -O1 -D_DEBUG -fno-strict-aliasing -D_D3XP -DCTF -DGAME_DLL d3xp/AF.cpp In file included from d3xp/../idlib/precompiled.h:142:0, from d3xp/AF.cpp:29: d3xp/../idlib/../renderer/qgl.h:51:19: fatal error: GL/gl.h: No such file or directory compilation terminated. scons: *** [build/debug/d3xp/d3xp/AF.os] Error 1 scons: building terminated because of errors.

修复者:

sudo apt-get install libgl1-mesa-dev

然后得到:

In file included from build/debug/core/glimp/sys/linux/glimp_dlopen.cpp:3:0: ./sys/linux/local.h:40:38: fatal error: X11/extensions/xf86vmode.h: No such file or directory compilation terminated. scons: *** [build/debug/core/glimp/sys/linux/glimp_dlopen.o] Error 1 scons: building terminated because of errors.

修复者:

sudo apt-get install libxxf86vm-dev

然后得到:

In file included from openal/stubs.cpp:29:0: openal/../sound/snd_local.h:44:19: fatal error: AL/al.h: No such file or directory compilation terminated.

修复者:

sudo apt-get install libopenal-dev

然后得到:

In file included from sys/linux/sound.cpp:42:0: sys/linux/sound.h:90:28: fatal error: alsa/asoundlib.h: No such file or directory compilation terminated. scons: *** [build/debug/core/sys/linux/sound.o] Error 1 scons: building terminated because of errors.

修复者:

sudo apt-get install libasound2-dev

然后得到:

/usr/bin/ld: cannot find -lz collect2: ld returned 1 exit status scons: *** [build/debug/core/sys/scons/doom] Error 1 scons: building terminated because of errors.

修复者:

sudo apt-get install g++-multilib gcc-multilib sudo apt-get install zlib1g-dev

最后:

Install file: "build/debug/core/sys/scons/doom" as "doom.x86" Install file: "build/debug/game/sys/scons/libgame.so" as "gamex86-base.so" Install file: "build/debug/d3xp/sys/scons/libgame.so" as "gamex86-d3xp.so" scons: done building targets.

另请检查: http://mapopa.blogspot.com/2011/11/building-doom3-gpl-code-on-ubuntu.html

关于linux - ubuntu 上的 Scons/Doom 3 编译错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8254095/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com