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

Issues when building without VTK #1584

Closed
humanoid2050 opened this issue Apr 7, 2016 · 2 comments
Closed

Issues when building without VTK #1584

humanoid2050 opened this issue Apr 7, 2016 · 2 comments

Comments

@humanoid2050
Copy link

I tried to compile without VTK, both through auto detection of VTK being missing and explicitly setting WITH_VTK=FALSE. In both cases, compilation failed with

In file included from /home/user/custom_builds/pcl/src/pcl-pcl-1.8.0rc2/io/tools/converter.cpp:52:0:
/home/user/custom_builds/pcl/src/pcl-pcl-1.8.0rc2/io/include/pcl/io/vtk_lib_io.h:57:24: fatal error: vtkVersion.h: No such file or directory

It seems that there is an unprotected reference to VTK components outside the parts disabled by the VTK flags.
As an additional comment, there is no FindVTK.cmake in cmake/Modules/. Not a problem if cmake can automatically find VTKConfig.cmake under a known directory, but cmake will throw a warning if not found. Additionally, the logic in CMakeLists.txt seems to leave VTK_FOUND and HAVE_VTK uninitialized in this situation.

@VictorLamoine
Copy link
Contributor

My bad, I forgot to check that VTK is here to build pcl_converter and the David SDK grabber.
Pull request #1585 should fix the compilation.

@jspricke
Copy link
Member

jspricke commented Apr 7, 2016

Should be fixed in master, Thanks!

@jspricke jspricke closed this as completed Apr 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants