Errors in running code(Segmentation fault(core dumped) and vtkPolyDataMapper)

I am getting this strange error when I am running my VTK codes(C++)

    banikr@banikr:~/VTK/VTKTract1-build$ ./VTKTract1 
    Here@@@@@ 
    2019-11-25 15:08:43.910 (   0.243s) [        554C4740]  vtkPolyDataMapper.cxx:28    WARN| Error: no override found for 'vtkPolyDataMapper'.
    Segmentation fault (core dumped)

Can anyone explain the reason?

You need to link with a rendering backend to use vtkPolyDataMapper. Most likely, you want to link with the vtkRenderingOpenGL2 library.

1 Like

Maybe that error message should be more specific.

1 Like

Hey,
I just solved this issue by reinstalling vtk version 8.2.0 with CMake 3.10.

Not sure how it could without the base classes knowing about “all” implementations of them across the source tree.