我正在尝试在 Ubuntu 18.04.5 LTS 上使用 VTK 7.1.1运行 python (3.6.9)脚本作为使用虚拟机的来宾 VM。但我收到以下错误:
In /build/vtk7‑w4DzBd/vtk7.1.1+dfsg1/Rendering/OpenGL2/vtkOpenGLRenderWindow.cxx, line 640
vtkXOpenGLRenderWindow (0x2a56080): 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.
当我运行命令时
glxinfo | grep "OpenGL version"
它返回:
OpenGL version string: 2.1 Mesa 20.0.0-devel - padoka PPA
如果我正确理解 Ubuntu 上的可视化是由 Mesa 20.0.0-devel 完成的(需要 10.6.5 - 这可以),但安装的 Mesa 使用 OpenGL 2.1 而不是更新的(需要 3.2 - 这不行)。我已经安装了最新版本的 Mesa。任何建议如何解决这个问题?