Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[visualization] Add VTK 9 support #4412

Closed
lesterlo opened this issue Sep 19, 2020 · 3 comments · Fixed by #4262
Closed

[visualization] Add VTK 9 support #4412

lesterlo opened this issue Sep 19, 2020 · 3 comments · Fixed by #4262
Labels
kind: todo Type of issue needs: pr merge Specify why not closed/merged yet

Comments

@lesterlo
Copy link

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)
@lesterlo lesterlo added kind: bug Type of issue status: triage Labels incomplete labels Sep 19, 2020
@kunaltyagi
Copy link
Member

It's a WIP. Please see #4262

@kunaltyagi kunaltyagi changed the title [visuli] Did PCL supports VTK 9.0? [visualization] Add VTK 9 support Sep 19, 2020
@kunaltyagi kunaltyagi linked a pull request Sep 19, 2020 that will close this issue
@kunaltyagi kunaltyagi added needs: pr merge Specify why not closed/merged yet kind: todo Type of issue and removed status: triage Labels incomplete kind: bug Type of issue labels Sep 19, 2020
@thrhgh
Copy link

thrhgh commented Feb 20, 2021

Any expected date for this issue to be solved?

@larshg
Copy link
Contributor

larshg commented Feb 20, 2021

Any expected date for this issue to be solved?

We have merged a PR that adds support for vtk9. But for now you would have to compile from source/master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: todo Type of issue needs: pr merge Specify why not closed/merged yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants