关于openGL,以及显卡的问题,求助,thx

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
vvwyot
帖子: 19
注册时间: 2012-01-26 16:48

关于openGL,以及显卡的问题,求助,thx

#1

帖子 vvwyot » 2012-01-26 16:59

想学openGL,但是发现自己编译环境都搭不好,glut的几个库都装了,用eclipes页下载cdt插件,可是run的时候就会跳出
Launch failed.Binary not found.
程序里面的问题在#include<GL/glut.h>,显示的是Multiple markers at this line - Unresolved inclusion: <GLglut.h>
直接用vi谢的话,编译运行就会显示Xlib: extension "GLX" missing on display ":0.0".
freeglut (./a.out): OpenGL GLX extension not supported by display ':0.0'
网上找了很多资料都没有用...是不是我的显卡驱动有问题?

我用~$ glxinfo | grep rendering
显示的是
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".
显卡是nvdia的,求大大帮忙解决,万分感谢~~ :em06
vvwyot
帖子: 19
注册时间: 2012-01-26 16:48

Re: 关于openGL,以及显卡的问题,求助,thx

#2

帖子 vvwyot » 2012-01-26 17:13

有大神帮忙解决下么。。。。困扰好久了
mraandtux
论坛版主
帖子: 5211
注册时间: 2009-12-12 19:29
系统: Kubuntu

Re: 关于openGL,以及显卡的问题,求助,thx

#3

帖子 mraandtux » 2012-01-26 17:30

vvwyot
帖子: 19
注册时间: 2012-01-26 16:48

Re: 关于openGL,以及显卡的问题,求助,thx

#4

帖子 vvwyot » 2012-01-28 16:07

好像不是同一个情况啊.....
vvwyot
帖子: 19
注册时间: 2012-01-26 16:48

Re: 关于openGL,以及显卡的问题,求助,thx

#5

帖子 vvwyot » 2012-01-28 16:09

之前11.04没这个问题...装了11.10就这样了...
郁闷啊....
求大神帮忙啊 :em18
头像
cjxgm
帖子: 1952
注册时间: 2010-04-23 20:40
系统: Arch Linux
来自: 浙江·杭州
联系:

Re: 关于openGL,以及显卡的问题,求助,thx

#6

帖子 cjxgm » 2012-01-28 16:22

OpenGL GLX extension not supported by display ':0.0'
这很明显没有开启 GLX,一般情况下,如果你确定装好了闭源驱动,那就大概是你没有修改 xorg.conf,或者你的 xorg.conf 被弄乱了(如果你还装过开源驱动)。
试试运行 nvidia-xconfig
Clanjor Prods. | Develop for Developers. (C++, Lua) | 作曲编曲 | 实时渲染引擎
vvwyot
帖子: 19
注册时间: 2012-01-26 16:48

Re: 关于openGL,以及显卡的问题,求助,thx

#7

帖子 vvwyot » 2012-01-28 17:39

Using X configuration file: "/etc/X11/xorg.conf".

VALIDATION ERROR: Data incomplete in file /etc/X11/xorg.conf.
Device section "Default Device" must have a Driver line.


ERROR: Unable to write to directory '/etc/X11'.
这个是没装驱动么?
头像
cjxgm
帖子: 1952
注册时间: 2010-04-23 20:40
系统: Arch Linux
来自: 浙江·杭州
联系:

Re: 关于openGL,以及显卡的问题,求助,thx

#8

帖子 cjxgm » 2012-01-28 17:45

vvwyot 写了:Using X configuration file: "/etc/X11/xorg.conf".

VALIDATION ERROR: Data incomplete in file /etc/X11/xorg.conf.
Device section "Default Device" must have a Driver line.


ERROR: Unable to write to directory '/etc/X11'.
这个是没装驱动么?
没有写权限
sudo nvidia-xconfig
Clanjor Prods. | Develop for Developers. (C++, Lua) | 作曲编曲 | 实时渲染引擎
vvwyot
帖子: 19
注册时间: 2012-01-26 16:48

Re: 关于openGL,以及显卡的问题,求助,thx

#9

帖子 vvwyot » 2012-01-28 19:16

是显卡驱动没装...
装完了重启的时候,不知道为什么有个
Automatic crash report generation [Failed]
进不去了..
这个怎么处理...查了一下,有人说禁掉bootsplash
这个有用么...?怎么禁
回复