No override found for vtkRenderer/ vtkRenderWindow

2019-05-10 14:14发布

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.

标签: cmake vtk
1条回答
Rolldiameter
2楼-- · 2019-05-10 15:03

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.

查看更多
登录 后发表回答