paraview 在 Mesa 中需要更高的 OpenGL

paraview needs higher OpenGL in Mesa

我正在尝试在 CentOS 中使用 paraview 5.3.0。

我用Qt5编译的。当我启动 paraview 时,它告诉我:

GL version 2.1 with the gpu_shader4 extension is not supported by your graphics driver but 
is required for the new OpenGL rendering backend. Please update your OpenGL driver. If you 
are using Mesa please make sure you have version 10.6.5 or later and make sure your driver 
in Mesa supports OpenGL 3.2.

这是板载显卡:

lspci |grep VGA
03:00.0 VGA compatible controller: Matrox Electronics Systems Ltd. Device 0536 (rev 04)

还有 glxinfo:

glxinfo | grep OpenGL
OpenGL vendor string: VMware, Inc.
OpenGL renderer string: Gallium 0.4 on llvmpipe (LLVM 3.9, 256 bits)
OpenGL version string: 2.1 Mesa 17.0.1
OpenGL shading language version string: 1.30
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 2.0 Mesa 17.0.1
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 1.0.16
OpenGL ES profile extensions:

我不明白“...请确保您的 driver 在 Mesa ...”是什么意思。

亲切的问候

将 llvmpipe/gallium 与软件渲染器 mesa 一起使用时,可能无法正确检测到 OpenGL 功能。解决这个问题的最简单方法是强制执行它:

MESA_GL_VERSION_OVERRIDE=3.3 ./bin/paraview

llvmpipe是软件渲染驱动。

我不知道您是否在 VM 上使用 运行 CentOS(即使 glxinfo 说 "OpenGL vendor string: VMware, Inc." 也不一定意味着您在 VMware 上使用 运行) .

如果您不是 运行 CentOS 作为 VM 来宾,请考虑为您的视频卡安装适当的台面驱动程序。