Ubuntu18.04.5 LTS作为来宾虚拟机不支持带有gpu_shared4扩展的GL版本2.1

2024-10-01 15:29:09 发布

您现在位置:Python中文网/ 问答频道 /正文

我试图在Ubuntu18.04.5LTS上运行一个带有VTK7.1.1的python(3.6.9)script,作为使用虚拟机的来宾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。有什么建议可以解决这个问题吗


Tags: theyouyourmakeisversiondriverscript
1条回答
网友
1楼 · 发布于 2024-10-01 15:29:09

我认为这是一个错误的问题,下次你应该试试serverfault或askubuntu

说到askbuntu,这里有一个快速的答案:

The OpenGL drivers in the VirtualBox Guest Additions are limited to OpenGL 2.1. Despite many requests for improved OpenGL capability in the VBox user forums I've seen no mention of the VBox developers working on OpenGL 3 or better support. That said it only had OpenGL 2.0 support around 2009 and has been quietly upgrading to OpenGL 2.1 in the meantime. They may get there.

You always have the option to install software rendering OpenGL drivers but they wouldn't be usable for anything beyond the most basic requirements. e.g.: there is a software rendering OpenGL32 driver for Blender on their FTP site which allows Blender for Windows to actually work inside a Windows guest, but frame rates when animating Poses are in the 0.5-2.0 fps region. Not nice.

Note that VMware's paid products (VMware Fusion for Mac, VMware Workstation for Linux and VMware Workstation for Windows) all have 3D capabilities at DirectX 10 and OpenGL 3.3 feature levels. If you're willing to pay for them they may work for you (there are trial versions available to download and install for free).

You'd think it wouldn't be too hard to port across, all four being products of VMware... and it's just a driver for their own virtual graphics adapter... right?

https://askubuntu.com/questions/858407/how-to-update-to-latest-opengl-version-on-virtualbox-ubuntu-linux-machine

一般的想法是,客户机上模拟的图形卡无法处理OpenGL版本>;2.1

如果您正在研究虚拟化,您可能会启动一个名为qemu的小项目。我可以告诉你,从个人经验,与正确的设置,它会做的把戏

相关问题 更多 >

    热门问题