我正在尝试运行此代码创建一个具有 openGL 功能的透明 xlib 窗口,但是当我运行该程序时,我在终端中收到以下错误:
libGL error: pci id for fd 4: 80ee:beef, driver (null)
OpenGL Warning: glFlushVertexArrayRangeNV not found in mesa table
OpenGL Warning: glVertexArrayRangeNV not found in mesa table
OpenGL Warning: glCombinerInputNV not found in mesa table
OpenGL Warning: glCombinerOutputNV not found in mesa table
OpenGL Warning: glCombinerParameterfNV not found in mesa table
OpenGL Warning: glCombinerParameterfvNV not found in mesa table
OpenGL Warning: glCombinerParameteriNV not found in mesa table
OpenGL Warning: glCombinerParameterivNV not found in mesa table
OpenGL Warning: glFinalCombinerInputNV not found in mesa table
OpenGL Warning: glGetCombinerInputParameterfvNV not found in mesa table
OpenGL Warning: glGetCombinerInputParameterivNV not found in mesa table
OpenGL Warning: glGetCombinerOutputParameterfvNV not found in mesa table
OpenGL Warning: glGetCombinerOutputParameterivNV not found in mesa table
OpenGL Warning: glGetFinalCombinerInputParameterfvNV not found in mesa table
OpenGL Warning: glGetFinalCombinerInputParameterivNV not found in mesa table
OpenGL Warning: glDeleteFencesNV not found in mesa table
OpenGL Warning: glFinishFenceNV not found in mesa table
OpenGL Warning: glGenFencesNV not found in mesa table
OpenGL Warning: glGetFenceivNV not found in mesa table
OpenGL Warning: glIsFenceNV not found in mesa table
OpenGL Warning: glSetFenceNV not found in mesa table
OpenGL Warning: glTestFenceNV not found in mesa table
libGL error: core dri or dri2 extension not found
libGL error: failed to load driver: vboxvideo
移动后窗口看起来就像这样:(自启动后背景就不会更新了)
(我正在使用我制作的自定义桌面环境)
我搜索了一下,发现这些错误与在 Windows 主机上的 Virtualbox 中运行 Ubunutu 有关,但我认为这些问题几年前就已经解决了。
我的系统是:Ubuntu LTS 14.04.3 在 Windows 8.1 主机上运行,具有最新版本的 virtualbox 和 guest additions,启用了 3D 加速,安装了 libgl 和 mesa-utils(在我安装 mesa-utils 之前,背景只是纯白色,所以这是进步!)
编辑1:
正如这里所发布的那样https://askubuntu.com/a/324814/462342按用户最大限度,关闭 3D 加速确实可以解决大多数问题。现在我得到的唯一错误是:
libGL error: pci id for fd 4: 80ee:beef, driver (null)
libGL error: core dri or dri2 extension not found
libGL error: failed to load driver: vboxvideo
窗口按预期工作。
有人知道不需要关闭 3D 加速的修复方法吗?