微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Scons / Doom 3在ubuntu上编译错误

当我从提取的源码树中的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' )

我不知道它是否缺less一些东西,没有引用什么或什么。 这确实发生从一个新的提取一个新的文件夹也。

谢谢!

-m32选项不适用于gcc,但可以与g ++一起使用

如何在不触及CFLAGS环境variables的情况下在64位Linux机器上编译32位二进制文​​件

在多个平台上并行编译R包

编译错误:Fprintf抛出parsing错误

有没有办法打开/读取.PRI文件? (包资源索引 – 在Windowsapp store应用中使用)

用特定的OpenSSL版本构buildOpenVPN

摆脱“gcc – / usr / bin / ld:warning lib找不到”

arm-linux-gnueabi工具链与arm-linux-androideabi工具链。

在Windows上编译OpenSSL

C预处理文件中的这些不熟悉的行是什么?

尝试安装m4宏包 – 也许scons正在寻找它,这是报告缺少工具的方式?

sudo apt-get install m4

对我来说固定的问题…

然后我得到:

scons:完成读取sconscript文件。 scons:构建目标… scons:构建相关联的VariantDir目标: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从d3xp /../ idlib / precompiled.h:142:0,从d3xp / AF.cpp:29中包含的文件:d3xp /../ idlib /../ renderer / qgl.h:51:19:fatal错误:GL / gl.h:没有这样的文件或目录编译终止。 scons:*** [build / debug / d3xp / d3xp / AF.os]错误1 scons:建筑物由于错误而终止。

通过:

sudo apt-get install libgl1-mesa-dev

然后得到:

在build / debug / core / glimp / sys / linux / glimp_dlopen.cpp包含的文件中:3:0:./sys/linux/local.h:40:38:致命错误:X11 / extensions / xf86vmode.h:No这样的文件或目录编译终止。 scons:*** [build / debug / core / glimp / sys / linux / glimp_dlopen.o]错误1 scons:建立由于错误而终止。

通过:

sudo apt-get install libxxf86vm-dev

然后得到:

在openal / stubs.cpp中包含的文件:29:0:openal /../ sound / snd_local.h:44:19:致命错误:AL / al.h:没有这样的文件或目录编译终止。

通过:

sudo apt-get install libopenal-dev

然后得到:

在从sys / linux / sound.cpp包含的文件中:42:0:sys / linux / sound.h:90:28:致命错误:alsa / asoundlib.h:没有这样的文件或目录编译终止。 scons:*** [build / debug / core / sys / linux / sound.o]错误1 scons:建立由于错误而终止。

通过:

sudo apt-get install libasound2-dev

然后得到:

/ usr / bin / ld:无法找到-lz collect2:ld返回1退出状态scons:*** [build / debug / core / sys / scons / doom]错误1 scons:建立由于错误而终止。

通过:

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

最后:

安装文件:“build / debug / core / sys / scons / doom”为“doom.x86”安装文件:“build / debug / game / sys / scons / libgame.so”为“gamex86-base.so” :“build / debug / d3xp / sys / scons / libgame.so”为“gamex86-d3xp.so”scons:完成构建目标。

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

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐