Steam 游戏:Black Mesa 无法启动

Steam 游戏:Black Mesa 无法启动

当我尝试在 Ubuntu 中从 Steam 启动 Black Mesa 时,它无法运行。当我尝试从终端运行游戏时,出现此错误:

~/.steam/steam/steamapps/common/Black Mesa$ ./bms_linux -game bms +developer 0 -steam
./bms_linux: error while loading shared libraries: libtcmalloc_minimal.so.4: cannot open shared object file: No such file or directory

我可以通过在 Steam 中启动 Fedora 来玩游戏,但不能在 Ubuntu 上玩游戏。有人知道如何安装吗libtcmalloc_minimal.so.4

编辑:

安装 libtcmalloc-minimal4 后,出现此错误:

~/.steam/steam/steamapps/common/Black Mesa$ ./bms_linux
./bms_linux: error while loading shared libraries: libtcmalloc_minimal.so.4: wrong ELF class: ELFCLASS64

编辑2:安装32位libtcmalloc-minimal4:i386库后,出现以下错误:

:~/.steam/steam/steamapps/common/Black Mesa$ ./bms_linux
SDL video target is 'x11'
SDL video target is 'x11'
This system supports the OpenGL extension GL_EXT_framebuffer_object.
This system supports the OpenGL extension GL_EXT_framebuffer_blit.
This system supports the OpenGL extension GL_EXT_framebuffer_multisample.
This system DOES NOT support the OpenGL extension GL_APPLE_fence.
This system DOES NOT support the OpenGL extension GL_NV_fence.
This system supports the OpenGL extension GL_ARB_sync.
This system supports the OpenGL extension GL_EXT_draw_buffers2.
This system DOES NOT support the OpenGL extension GL_EXT_bindable_uniform.
This system DOES NOT support the OpenGL extension GL_APPLE_flush_buffer_range.
This system supports the OpenGL extension GL_ARB_map_buffer_range.
This system supports the OpenGL extension GL_ARB_vertex_buffer_object.
This system supports the OpenGL extension GL_ARB_occlusion_query.
This system DOES NOT support the OpenGL extension GL_APPLE_texture_range.
This system DOES NOT support the OpenGL extension GL_APPLE_client_storage.
This system DOES NOT support the OpenGL extension GL_ARB_uniform_buffer.
This system supports the OpenGL extension GL_ARB_vertex_array_bgra.
This system supports the OpenGL extension GL_EXT_vertex_array_bgra.
This system supports the OpenGL extension GL_ARB_framebuffer_object.
This system DOES NOT support the OpenGL extension GL_GREMEDY_string_marker.
This system supports the OpenGL extension GL_ARB_debug_output.
This system DOES NOT support the OpenGL extension GL_EXT_direct_state_access.
This system DOES NOT support the OpenGL extension GL_NV_bindless_texture.
This system supports the OpenGL extension GL_AMD_pinned_memory.
This system supports the OpenGL extension GL_EXT_framebuffer_multisample_blit_scaled.
This system supports the OpenGL extension GL_EXT_texture_sRGB_decode.
This system supports the OpenGL extension GL_NVX_gpu_memory_info.
This system supports the OpenGL extension GL_ATI_meminfo.
This system supports the OpenGL extension GL_EXT_texture_compression_s3tc.
This system supports the OpenGL extension GL_EXT_texture_compression_dxt1.
This system supports the OpenGL extension GL_ANGLE_texture_compression_dxt3.
This system supports the OpenGL extension GL_ANGLE_texture_compression_dxt5.
This system supports the OpenGL extension GL_ARB_buffer_storage.
This system DOES NOT support the OpenGL extension GLX_EXT_swap_control_tear.
OpenGL: Gallium 0.4 on AMD CAICOS (DRM 2.46.0 / 4.8.0-27-generic, LLVM 3.8.1) 3.0 Mesa 12.0.3 (3.0.0)
GL_NV_bindless_texture: DISABLED
GL_AMD_pinned_memory: DISABLED
GL_ARB_buffer_storage: AVAILABLE
GL_EXT_texture_sRGB_decode: AVAILABLE
AppFramework : Unable to load module engine.so!
Unable to load interface VCvarQuery001 from engine.so, requested from EXE.

请注意,我正在使用带有免费图形驱动程序的以下 AMD 显卡:

01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Caicos XTX [Radeon HD 8490 / R5 235X OEM]

答案1

这可能是解决方案:

  1. 前往 Black Mesa 的安装目录 ( <library path>/steamapps/common/Black Mesa/bin)

  2. 删除或者重命名libstdc++.so.6

Black Mesa 似乎链接到自己的libstdc++版本,该版本比您系统上的版本更旧或更新(并被重要的驱动程序二进制文件使用,例如 Mesa 的那些部分),因此不兼容。通过删除或重命名它,您可以强制游戏启动器使用您系统版本的库。

我第一次读到这篇文章是在Steam 论坛(见第 12 页及前页),然后在https://thomasvanderberg.nl/blog/fixing-black-mesa-linux/

相关内容