vtk运行时出现"with the gpu_shader4 extension is not supported"
2016-04-18 21:07
549 查看
vtk7.0已经配置好,但在运行时奔溃。
打开安装解压目录下的…\VTKsourcecode\Rendering\OpenGL2\vtkOpenGLRenderWindow.cxx文件,在545行发现如下代码:
即vtk7.0只支持“显卡支持openGL 3.2”的笔记本。
可以使用“everest”软件查看自己的显卡支持最高openGL版本。
如图所示,由于本人的笔记本不支持openGL3.2,所以无法运行程序。
经测试,vtk (6.3.0)版本以上都需要openGL3.2支持的显卡
打开安装解压目录下的…\VTKsourcecode\Rendering\OpenGL2\vtkOpenGLRenderWindow.cxx文件,在545行发现如下代码:
if (!GLEW_VERSION_3_2) { if (!GLEW_VERSION_2_1 || !GLEW_EXT_gpu_shader4) { vtkErrorMacro("GL version 2.1 with the gpu_shader4 extension is not " "supported by your graphics driver but is required for the new " "OpenGL rendering backend. Please update your OpenGL driver. " "If you are using Mesa please make sure you have version 10.6.5 or " "later and make sure your driver in Mesa supports OpenGL 3.2."); return; } vtkWarningMacro( "VTK is designed to work with OpenGL version 3.2 but it appears " "it has been given a context that does not support 3.2. VTK will " "run in a compatibility mode designed to work with OpenGL 2.1 but " "some features may not work."); } else { this->SetContextSupportsOpenGL32(true); }
即vtk7.0只支持“显卡支持openGL 3.2”的笔记本。
可以使用“everest”软件查看自己的显卡支持最高openGL版本。
如图所示,由于本人的笔记本不支持openGL3.2,所以无法运行程序。
经测试,vtk (6.3.0)版本以上都需要openGL3.2支持的显卡
相关文章推荐
- request和response
- 华为机试练习ex013_cpp之操作系统任务调度问题
- 安卓的Pull解析
- Ubuntu下Eclipse的安装方法(图文详解)
- NYOJ-求逆序数 ----------------待解决,WA
- 进程通信(共享内存)
- C++语法细节笔记
- 关于main函数
- Java运算符问题
- shell脚本程序
- 分布式倒置索引(MapReduce程序)
- Android java.io.FileNotFoundException: open failed: EACCES (Permission denied) 问题未解决!!
- java毕向东听课笔记17(字符串1)
- 58_捕获全局未捕获异常
- startActivityForResult()用法
- 素数判定 扳子
- android设计模式的使用之观察者模式
- c#学习笔记五 面向对象编程的基本概念 接口 继承和多态
- 网络层--IP协议(04)
- 蛤玮的魔法