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

PCL 1.9 fails to detect installed VTK (v8.9) #3525

Closed
Zhongwei-Luo opened this issue Jan 6, 2020 · 10 comments
Closed

PCL 1.9 fails to detect installed VTK (v8.9) #3525

Zhongwei-Luo opened this issue Jan 6, 2020 · 10 comments
Labels
kind: compile error Type of issue

Comments

@Zhongwei-Luo
Copy link

Zhongwei-Luo commented Jan 6, 2020

I have install vtk ,and pcl found it , but it said it consider vtk to be not found

Your Environment

  • Operating System and version:ubuntu 18.04
  • Compiler: gcc 7.4
  • PCL Version: 1.9

Context

trying to install the PCL1.9 in my computer

Expected Behavior

Current Behavior

Code to Reproduce

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

/usr/local/lib/cmake/vtk-8.90/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 8, rendering backend: OpenGL
CMake Deprecation Warning at /usr/local/lib/cmake/vtk-8.90/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:426 (include)

-- VTK found (include: , libs:
-- Could NOT find PCAP (missing: PCAP_LIBRARIES PCAP_INCLUDE_DIRS)
-- Boost version: 1.65.1
-- Found the following Boost libraries:
-- filesystem
-- date_time
-- iostreams
-- system
-- regex
-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libOpenGL.so
-- Found GLEW: /usr/include
-- DOXYGEN_FOUND
-- HTML_HELP_COMPILER
-- Found CPack generators: DEB
-- The following subsystems will be built:
-- common
-- kdtree
-- octree
-- search
-- sample_consensus
-- filters
-- 2d
-- geometry
-- io
-- features
-- ml
-- segmentation
-- surface
-- registration
-- keypoints
-- tracking
-- recognition
-- stereo
-- tools
-- The following subsystems will not be built:
-- visualization: VTK was not found.
-- apps: No reason
-- outofcore: Disabled manually.
-- examples: Code examples are disabled by default.
-- people: Disabled manually.
-- simulation: Disabled by default.
-- global_tests: No reason
-- Configuring done
-- Generating done
-- Build files have been written to: /home/lzw/for_dev_software/pcl-master/build

Possible Solution

@jasjuang
Copy link
Contributor

jasjuang commented Jan 7, 2020

I agree this bug has to be solved at some point but I know that it works with VTK 8.2. If you don't mind using an older VTK you can temporarily workaround this problem.

@Zhongwei-Luo
Copy link
Author

Zhongwei-Luo commented Jan 9, 2020 via email

@rimmartin
Copy link

same issue with PCL Version: 1.10

@rimmartin
Copy link

VTK git HEAD has the module RenderingContextOpenGL2 where
pcl git HEAD is looking for RenderingContextOpenGL by default

Looking in CMakeLists.txt https://github.com/PointCloudLibrary/pcl/blob/master/#L410 the default for VTK_RENDERING_BACKEND is OpenGL if it is undefined.

So on the cmake command line adding -DVTK_RENDERING_BACKEND=OpenGL2 changes the default and pcl HEAD with VTK HEAD gets to the compile stage.

no successful compile yet but that's a different issue

@rimmartin
Copy link

This has been discussed in other issues
#1234
#1534
Perhaps a heads up in https://github.com/PointCloudLibrary/pcl#compiling section would help new users.

@kunaltyagi kunaltyagi changed the title I have isntall vtk ,but pcl PCL 1.9 fails to detect installed VTK (v8.9) Feb 13, 2020
@taketwo
Copy link
Member

taketwo commented Feb 14, 2020

Probably related: #3637

@rimmartin
Copy link

rimmartin commented Feb 21, 2020

got pcl HEAD with VTK HEAD to compile successfully.

Needed to consider https://vtk.org/doc/nightly/html/classvtkCellArray.html#details VTK_CELL_ARRAY_V2 numerous places. vtkShaderProgram2 doesn't exist in VTK HEAD but vtkShaderProgram does.

I see other pull requests; I'll keep an eye and if this isn't building for others I'll then fork and make a pull request.

Working on usage and testing if visuals work

@larshg
Copy link
Contributor

larshg commented May 16, 2020

Close this as PCL 1.9 only support up to 8.1/8.2 maybe?

Work is in progress to support vtk 9.0, but that will be from PCL 1.12?

@kunaltyagi
Copy link
Member

VTK 9.0 support: PCL 1.11.1 if possible, else 1.12

Also, before I close, does PCL >1.9 support VTK 8.9, that is, will moving to PCL 1.10 (or higher) resolve the issue?

@larshg
Copy link
Contributor

larshg commented May 16, 2020

VTK 8.9, is not an actual release. Only 8.2 was the latests before 9.0. So the answer is no.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: compile error Type of issue
Projects
None yet
Development

No branches or pull requests

6 participants