VTK的构建错误

时间:2012-08-31 13:38:23

标签: qt vtk

我在Ubuntu 10.04上使用Qt。在安装程序之后,我尝试按照vtk示例按照此处[http://www.vtk.org/Wiki/VTK/Examples/Instructions/ForUsers]上的说明进行测试。

但它会出现如下错误:

Starting /home/taha/Downloads/VTK/Examples/Tutorial/Step1/Cxx/Cone...
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".
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".
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: In /home/taha/Downloads/VTK/Rendering/vtkXOpenGLRenderWindow.cxx, line 398
vtkXOpenGLRenderWindow (0x9812928): Could not find a decent visual


The program has unexpectedly finished.
/home/taha/Downloads/VTK/Examples/Tutorial/Step1/Cxx/Cone exited with code 0

如何解决这个问题?

1 个答案:

答案 0 :(得分:0)

我的个人经验是,您编写自己的Makefile并进行测试...附带的示例如下:

View getView