![OpenGL 警告不在 mesa 表中](https://linux22.com/image/839599/OpenGL%20%E8%AD%A6%E5%91%8A%E4%B8%8D%E5%9C%A8%20mesa%20%E8%A1%A8%E4%B8%AD.png)
我在虚拟机上运行 Ubuntu 13.04。
我的主人是:
windows 7
64 bit machine
i7-2630QM
NVIDIA geforce gtx 460M graphics
我已经在虚拟机中的 Linux 操作系统上安装了 openGL、glut 和 mesa。
当我编写一个测试 openGL 程序时,它编译得很好,但当我运行该程序时,我收到以下警告和分段错误。
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
OpenGL Warning: XGetVisualInfo returned 0 visuals for 0xf77250
OpenGL Warning: Retry with 0x8002 returned 0 visuals
Segmentation fault (core dumped)
有人知道这是否是由于缺少驱动程序而导致的错误吗?
我注意到至少有一个人在网上发帖说与我的情况类似,但仍然没有回复
编辑:来宾添加网站:
Linux 上的 OpenGL 需要内核 2.6.27 及更高版本以及 X.org 服务器版本 1.5 及更高版本。Ubuntu 10.10 和 Fedora 14 已经过测试并确认可以正常运行。
我当前的 X.Org 服务器版本:
-VirtualBox:~/workspace/C++/Chapter_8$ X -version
X.Org X Server 1.13.3
Release Date: 2013-03-07
X Protocol Version 11, Revision 0
Build Operating System: Linux 3.2.0-37-generic x86_64 Ubuntu
Current Operating System: Linux marco-VirtualBox 3.8.0-26-generic #38-Ubuntu SMP Mon Jun 17 21:43:33 UTC 2013 x86_64
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-3.8.0-26-generic root=UUID=e9e83a17-def0-4c1a-8da1-86dbaa5c1658 ro quiet splash vt.handoff=7
Build Date: 17 April 2013 10:43:13PM
xorg-server 2:1.13.3-0ubuntu6 (For technical support please see http://www.ubuntu.com/support)
Current version of pixman: 0.28.2
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
我当前的内核:
-VirtualBox:~/workspace/C++/Chapter_8$ uname -r
3.8.0-26-generic
但我不确定我的 X.Org 服务器版本是否是 1.5。
答案1
我最近也遇到了同样的错误信息。我发现,如果我在 VirtualBox 中关闭 3D 加速,一切都会正常工作(虽然没有 3D 加速并不理想,但如果能找到一种不需要禁用它的解决方案就好了)。
答案2
VirtualBox 目前不支持 OpenGL 3.0 或更高版本,上周我不得不迁移到 VMware...我可能错了,但这些警告似乎是由此引起的。