Skip to content

[visualization] Add VTK 9 support #4412

@lesterlo

Description

@lesterlo

Context

The pcl cannot compile with VTK version VTK 9.0 on macOS 1.15.6

Expected behavior

The pcl can compile with VTK 9.0

Current Behavior

VTK is not found withVTK 9.0

Screenshots/Code snippets

CMake Warning at CMakeLists.txt:418 (find_package):
  Found package configuration file:

    /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake

  but it set VTK_FOUND to FALSE so package "VTK" is considered to be NOT
  FOUND.  Reason given by package:

  Could not find the VTK package with the following required components:
  RenderingContextOpenGL.

-- VTK_MAJOR_VERSION 9, rendering backend: OpenGL
CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-use-file-deprecated.cmake:1 (message):
  The `VTK_USE_FILE` is no longer used starting with 8.90.
Call Stack (most recent call first):
  CMakeLists.txt:423 (include)


-- VTK found (include: , libs:
CMake Deprecation Warning at CMakeLists.txt:432 (message):
  The rendering backend OpenGL is deprecated and not available anymore since
  VTK 8.2.Please switch to the OpenGL2 backend instead, which is available
  since VTK 6.2.Support of the deprecated backend will be dropped with PCL
  1.13.

Your Environment

  • OS: macOS 1.15.6
  • Compiler: clang-1103.0.32.62
  • PCL Version: 1.11.1

Possible Solution

Maybe modify the cmake file may help?

More Information

Here is the vtk deprecation warning for reference

CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:64 (message):
  The new name for the 'vtkChartsCore' component is 'ChartsCore'
Call Stack (most recent call first):
  CMakeLists.txt:395 (find_package)


CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:64 (message):
  The new name for the 'vtkCommonCore' component is 'CommonCore'
Call Stack (most recent call first):
  CMakeLists.txt:395 (find_package)


CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:64 (message):
  The new name for the 'vtkCommonDataModel' component is 'CommonDataModel'
Call Stack (most recent call first):
  CMakeLists.txt:395 (find_package)


CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:64 (message):
  The new name for the 'vtkCommonExecutionModel' component is
  'CommonExecutionModel'
Call Stack (most recent call first):
  CMakeLists.txt:395 (find_package)


CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:64 (message):
  The new name for the 'vtkFiltersCore' component is 'FiltersCore'
Call Stack (most recent call first):
  CMakeLists.txt:395 (find_package)


CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:64 (message):
  The new name for the 'vtkFiltersExtraction' component is
  'FiltersExtraction'
Call Stack (most recent call first):
  CMakeLists.txt:395 (find_package)


CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:64 (message):
  The new name for the 'vtkFiltersModeling' component is 'FiltersModeling'
Call Stack (most recent call first):
  CMakeLists.txt:395 (find_package)


CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:64 (message):
  The new name for the 'vtkImagingCore' component is 'ImagingCore'
Call Stack (most recent call first):
  CMakeLists.txt:395 (find_package)


CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:64 (message):
  The new name for the 'vtkImagingSources' component is 'ImagingSources'
Call Stack (most recent call first):
  CMakeLists.txt:395 (find_package)


CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:64 (message):
  The new name for the 'vtkInteractionStyle' component is 'InteractionStyle'
Call Stack (most recent call first):
  CMakeLists.txt:395 (find_package)


CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:64 (message):
  The new name for the 'vtkInteractionWidgets' component is
  'InteractionWidgets'
Call Stack (most recent call first):
  CMakeLists.txt:395 (find_package)


CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:64 (message):
  The new name for the 'vtkIOCore' component is 'IOCore'
Call Stack (most recent call first):
  CMakeLists.txt:395 (find_package)


CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:64 (message):
  The new name for the 'vtkIOGeometry' component is 'IOGeometry'
Call Stack (most recent call first):
  CMakeLists.txt:395 (find_package)


CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:64 (message):
  The new name for the 'vtkIOImage' component is 'IOImage'
Call Stack (most recent call first):
  CMakeLists.txt:395 (find_package)


CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:64 (message):
  The new name for the 'vtkIOLegacy' component is 'IOLegacy'
Call Stack (most recent call first):
  CMakeLists.txt:395 (find_package)


CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:64 (message):
  The new name for the 'vtkIOPLY' component is 'IOPLY'
Call Stack (most recent call first):
  CMakeLists.txt:395 (find_package)


CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:64 (message):
  The new name for the 'vtkRenderingAnnotation' component is
  'RenderingAnnotation'
Call Stack (most recent call first):
  CMakeLists.txt:395 (find_package)


CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:64 (message):
  The new name for the 'vtkRenderingLOD' component is 'RenderingLOD'
Call Stack (most recent call first):
  CMakeLists.txt:395 (find_package)


CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:64 (message):
  The new name for the 'vtkViewsContext2D' component is 'ViewsContext2D'
Call Stack (most recent call first):
  CMakeLists.txt:395 (find_package)


CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:64 (message):
  The new name for the 'vtkChartsCore' component is 'ChartsCore'
Call Stack (most recent call first):
  CMakeLists.txt:418 (find_package)


CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:64 (message):
  The new name for the 'vtkCommonCore' component is 'CommonCore'
Call Stack (most recent call first):
  CMakeLists.txt:418 (find_package)


CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:64 (message):
  The new name for the 'vtkCommonDataModel' component is 'CommonDataModel'
Call Stack (most recent call first):
  CMakeLists.txt:418 (find_package)


CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:64 (message):
  The new name for the 'vtkCommonExecutionModel' component is
  'CommonExecutionModel'
Call Stack (most recent call first):
  CMakeLists.txt:418 (find_package)


CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:64 (message):
  The new name for the 'vtkFiltersCore' component is 'FiltersCore'
Call Stack (most recent call first):
  CMakeLists.txt:418 (find_package)


CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:64 (message):
  The new name for the 'vtkFiltersExtraction' component is
  'FiltersExtraction'
Call Stack (most recent call first):
  CMakeLists.txt:418 (find_package)


CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:64 (message):
  The new name for the 'vtkFiltersModeling' component is 'FiltersModeling'
Call Stack (most recent call first):
  CMakeLists.txt:418 (find_package)


CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:64 (message):
  The new name for the 'vtkImagingCore' component is 'ImagingCore'
Call Stack (most recent call first):
  CMakeLists.txt:418 (find_package)


CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:64 (message):
  The new name for the 'vtkImagingSources' component is 'ImagingSources'
Call Stack (most recent call first):
  CMakeLists.txt:418 (find_package)


CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:64 (message):
  The new name for the 'vtkInteractionStyle' component is 'InteractionStyle'
Call Stack (most recent call first):
  CMakeLists.txt:418 (find_package)


CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:64 (message):
  The new name for the 'vtkInteractionWidgets' component is
  'InteractionWidgets'
Call Stack (most recent call first):
  CMakeLists.txt:418 (find_package)


CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:64 (message):
  The new name for the 'vtkIOCore' component is 'IOCore'
Call Stack (most recent call first):
  CMakeLists.txt:418 (find_package)


CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:64 (message):
  The new name for the 'vtkIOGeometry' component is 'IOGeometry'
Call Stack (most recent call first):
  CMakeLists.txt:418 (find_package)


CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:64 (message):
  The new name for the 'vtkIOImage' component is 'IOImage'
Call Stack (most recent call first):
  CMakeLists.txt:418 (find_package)


CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:64 (message):
  The new name for the 'vtkIOLegacy' component is 'IOLegacy'
Call Stack (most recent call first):
  CMakeLists.txt:418 (find_package)


CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:64 (message):
  The new name for the 'vtkIOPLY' component is 'IOPLY'
Call Stack (most recent call first):
  CMakeLists.txt:418 (find_package)


CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:64 (message):
  The new name for the 'vtkRenderingAnnotation' component is
  'RenderingAnnotation'
Call Stack (most recent call first):
  CMakeLists.txt:418 (find_package)


CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:64 (message):
  The new name for the 'vtkRenderingLOD' component is 'RenderingLOD'
Call Stack (most recent call first):
  CMakeLists.txt:418 (find_package)


CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:64 (message):
  The new name for the 'vtkViewsContext2D' component is 'ViewsContext2D'
Call Stack (most recent call first):
  CMakeLists.txt:418 (find_package)


CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:64 (message):
  The new name for the 'vtkRenderingContextOpenGL' component is
  'RenderingContextOpenGL'
Call Stack (most recent call first):
  CMakeLists.txt:418 (find_package)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions