Pcl: %d was deprecated for VTK 8.1 and will be removed in a future version / PointCloudViewer

Created on 14 Jun 2019  路  2Comments  路  Source: PointCloudLibrary/pcl

I am using win10 and PCL 1.9.1 for visual studio 2017.

I am trying to run point cloud viewer with kinect v2 but when I run the example, I keep getting 2 different errors in 2 different window. Errors:

Generic Warning: In c:\vtk-8.1.2\rendering\core\vtkrenderwindow.cxx, line 1480
vtkRenderWindow::GetPainterDeviceAdapter was deprecated for VTK 8.1 and will be removed in a future version.
Generic Warning: In c:\vtk-8.1.2\rendering\core\vtkmapper.cxx, line 186
vtkMapper::ImmediateModeRenderingOff was deprecated for VTK 8.1 and will be removed in a future version.

Any solution for these?

question visualization

All 2 comments

They are warnings, not errors. One quick work around is making use of GlobalWarningDisplayOff. The real way to fix it is to update PCL's code to stop making use of those classes. That is not a priority in the current release schedule.

We don't use these classes explicitly. They are used by VTK itself when it's configured with OpenGL1 backend. On Windows we can not switch to OpenGL2 because of some issues. See #2619.

Was this page helpful?
0 / 5 - 0 ratings