No override found for vtkRenderer/ vtkRenderWindow

六眼飞鱼酱① 提交于 2019-12-07 14:32:02

问题


I'm new to vtk and when I was running a small example, it generates two errors,

No override found for vtkRenderer

No override found for vtkRenderWindow

I googled this problem and couldn't find a proper solution.


回答1:


I had such a problem when I was trying to make a VTK project without CMake, the solution was to use those two lines:

#include <vtkAutoInit.h> 
VTK_MODULE_INIT(vtkRenderingOpenGL2)

So if you are using CMake, then you probably have skipped some step while building your VTK environment.



来源:https://stackoverflow.com/questions/39029151/no-override-found-for-vtkrenderer-vtkrenderwindow

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!