我在Ubuntu 10.04中安装了OpenGL和freeglut,它在10.04和10.10中运行良好.但是在我升级到11.04之后,我使用OpenGL开发的应用程序运行不正常.他们正在编译而没有错误,但是当我尝试执行它们时,我遇到了错误:
对于GLUT:
Xlib: extension "GLX" missing on display ":0.0".
freeglut (./a.out): OpenGL GLX extension not supported by display ':0.0'
Run Code Online (Sandbox Code Playgroud)
对于OpenGL:
Xlib: extension "GLX" missing on display ":0.0".
main: X server has no OpenGL GLX extension
Run Code Online (Sandbox Code Playgroud)
我试过的一些事情:
Run Code Online (Sandbox Code Playgroud)$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 …