# Error: no override is found for 'vtkPolyDataMapper'

**URL:** https://discourse.vtk.org/t/error-no-override-is-found-for-vtkpolydatamapper/14270
**Category:** Support
**Created:** [July 22, 2024, 6:55am UTC](https://discourse.vtk.org/t/error-no-override-is-found-for-vtkpolydatamapper/14270 "2024-07-22T06:55:43Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Gib\_Bogle](https://discourse.vtk.org/user_avatar/discourse.vtk.org/gib_bogle/32/740_2.png) [@Gib\_Bogle](https://discourse.vtk.org/u/Gib_Bogle)
#### Post date: [July 22, 2024, 6:55am UTC](https://discourse.vtk.org/t/error-no-override-is-found-for-vtkpolydatamapper/14270/1 "2024-07-22T06:55:43Z")

</div>

I have built vtk-8.2.0, and have compiled a simple test program, cylinder.cxx.  
When I run it, a window pops up for a couple of seconds, with this message (which I managed to capture on my phone with some difficulty):

Generic Warning: In C:\VTK\VTK 8.2.0\VTK 8.2.0\Rendering\Core\vtkPolyDataMapper.cxx, line 28  
Error: no override found for ‘vtkPolyDataMapper’

I don’t know if this error is the reason, but the program doesn’t run - nothing is displayed except this popup.

---

<div class="post-metadata">

### Author: ![dgobbi](https://discourse.vtk.org/user_avatar/discourse.vtk.org/dgobbi/32/18_2.png) [@dgobbi](https://discourse.vtk.org/u/dgobbi)
#### Post date: [July 22, 2024, 1:25pm UTC](https://discourse.vtk.org/t/error-no-override-is-found-for-vtkpolydatamapper/14270/2 "2024-07-22T13:25:59Z")

</div>

In order to render, the program must link vtkRenderingOpenGL2. I’m pretty sure that this library is included in the CMakeLists.txt of the official cylinder.cxx example.

---

<div class="post-metadata">

### Author: ![dgobbi](https://discourse.vtk.org/user_avatar/discourse.vtk.org/dgobbi/32/18_2.png) [@dgobbi](https://discourse.vtk.org/u/dgobbi)
#### Post date: [July 22, 2024, 1:35pm UTC](https://discourse.vtk.org/t/error-no-override-is-found-for-vtkpolydatamapper/14270/3 "2024-07-22T13:35:21Z")

</div>

In fact, if I’m not mistaken, when building VTK 8 it was possible to configure which rendering backend to use:

```c++
VTK_RENDERING_BACKEND:STRING=OpenGL

```

```c++
VTK_RENDERING_BACKEND:STRING=OpenGL2

```

Since the OpenGL2 backend is that one that requires OpenGL 3.2 or later, this might have been the cause of your difficulties with Qt.

---

<div class="post-metadata">

### Author: ![Paulo\_Carvalho](https://discourse.vtk.org/user_avatar/discourse.vtk.org/paulo_carvalho/32/370_2.png) [@Paulo\_Carvalho](https://discourse.vtk.org/u/Paulo_Carvalho)
#### Post date: [July 22, 2024, 2:32pm UTC](https://discourse.vtk.org/t/error-no-override-is-found-for-vtkpolydatamapper/14270/4 "2024-07-22T14:32:05Z")

</div>

Hello,

During my time with VTK8 and Qt, I indeed had always to enable the `OpenGL2` backend. The other didn’t work for me.

regards,

PC
