不支持OpenGL GLX扩展 [英] OpenGL GLX extension not supported

查看:756
本文介绍了不支持OpenGL GLX扩展的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在Ubuntu 10.04中安装了OpenGL和freeglut,并且在10.04和10.10中运行良好.但是,当我升级到11.04之后,我使用OpenGL开发的应用程序无法正常运行.它们正在编译,没有错误,但是当我尝试执行它们时,我到了那里错误:

I had installed OpenGL and freeglut in Ubuntu 10.04 and it worked fine in 10.04 and 10.10. But after I upgraded to 11.04, the applications I've developed using OpenGL is not running properly. They're compiling without errors, but when I try to execute them, I get there errors:

对于GLUT:

Xlib:  extension "GLX" missing on display ":0.0".
freeglut (./a.out): OpenGL GLX extension not supported by display ':0.0'

仅适用于OpenGL:

For just OpenGL:

Xlib:  extension "GLX" missing on display ":0.0".
main: X server has no OpenGL GLX extension

我尝试过的一些事情:

$glxgears
Xlib:  extension "GLX" missing on display ":0.0".
Error: couldn't get an RGB, Double-buffered visual


$glxinfo
name of display: :0.0
Xlib:  extension "GLX" missing on display ":0.0".
Xlib:  extension "GLX" missing on display ":0.0".
Xlib:  extension "GLX" missing on display ":0.0".
Xlib:  extension "GLX" missing on display ":0.0".
Xlib:  extension "GLX" missing on display ":0.0".
Error: couldn't find RGB GLX visual or fbconfig

Xlib:  extension "GLX" missing on display ":0.0".
Xlib:  extension "GLX" missing on display ":0.0".
Xlib:  extension "GLX" missing on display ":0.0".
Xlib:  extension "GLX" missing on display ":0.0".
Xlib:  extension "GLX" missing on display ":0.0".
Xlib:  extension "GLX" missing on display ":0.0".
Xlib:  extension "GLX" missing on display ":0.0".

这不太可能是因为我没有图形驱动程序,因为我只有板载图形.

It is unlikely that this is because I don't have the graphics drivers as all I have is on board graphics.

这是来自sysinfo的我的系统图形信息

This is my system graphics information from sysinfo

$sysinfo
GRAPHIC CARD
      VGA controller
    Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller (rev 07) (prog-if 00 [VGA controller])
    Subsystem: Toshiba America Info Systems Device ff50

看来我已经为此安装了驱动程序.

Edit 2: And it seems I have a driver installed for that.

$lshw -C display
  *-display:0             
       description: VGA compatible controller
       product: Mobile 4 Series Chipset Integrated Graphics Controller
       vendor: Intel Corporation
       physical id: 2
       bus info: pci@0000:00:02.0
       version: 07
       width: 64 bits
       clock: 33MHz
       capabilities: msi pm vga_controller bus_master cap_list rom
       configuration: driver=i915 latency=0
       resources: irq:44 memory:f4000000-f43fffff memory:d0000000-dfffffff ioport:1800(size=8)

查看配置:驱动程序="

Look at "configuration: driver="

推荐答案

这些消息只是告诉您,您的图形驱动程序未正确安装. GLX是X11协议的扩展,用于使OpenGL在X11窗口中工作.启用GLX的系统包含3个部分:

Those messages simply tell you, that your graphics drivers are not installed properly. GLX is the extension of the X11 protocol for making OpenGL work in X11 windows. There are 3 parts to a GLX enabled system:

  • 一个内核模块,与GPU进行通信(这是Linux-Kernel DRM,或者是ATI/AMD的fglrx,或者是来自NVidia的nvidia).
  • X服务器GLX扩展模块,与内核模块通信,将OpenGL操作转换为GPU特定命令.
  • 客户端libGL.so也实现了GLX协议.有Mesa的基于DRI2的libGL,以及ATI/AMD或NVidia的专有libGL.so.

要使OpenGL正常工作,必须正确安装和加载这三个组件才能协调工作.如果不是这种情况,您将无法使用OpenGL(或仅使用软件光栅化器,该光栅化器在您的系统上均未正确安装).

For OpenGL to work properly those three components must be properly installed and loaded to work in harmony. If that's not the case you won't be able to use OpenGL (or only use a software rasterizer, which is not properly installed either on your system).

这篇关于不支持OpenGL GLX扩展的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆