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

Prevent building PCL with VTK and OpenGL2 backend #1533

Closed
wants to merge 1 commit into from
Closed

Prevent building PCL with VTK and OpenGL2 backend #1533

wants to merge 1 commit into from

Conversation

VictorLamoine
Copy link
Contributor

The idea is here but the WITH_VTK flag is not disabled. Ideas?

@@ -362,6 +362,14 @@ if(WITH_VTK AND NOT ANDROID)
find_package(VTK)
if(VTK_FOUND)
message(STATUS "VTK_MAJOR_VERSION ${VTK_MAJOR_VERSION}")
if (NOT "${VTK_RENDERING_BACKEND}" STREQUAL "OpenGL")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where you expect this variable to come from?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

VTK! It is set by the VTK CMake script in newer VTK versions:

$ sudo grep -i "VTK_RENDERING_BACKEND" /opt/vtk7_opengl2/lib/cmake/vtk-7.1 -r
/opt/vtk7_opengl2/lib/cmake/vtk-7.1/VTKConfig.cmake:set(VTK_RENDERING_BACKEND "OpenGL2")
/opt/vtk7_opengl2/lib/cmake/vtk-7.1/vtkGroups.cmake:    if(${group} MATCHES "^Rendering" AND "None" STREQUAL VTK_RENDERING_BACKEND)

This variable does not exist in VTK 5.8 release so I changed the condition to handle that case.
Still, VTK is not disabled when OpenGL2 is detected (I get the warning message though).

@VictorLamoine
Copy link
Contributor Author

Not needed thanks to #1534.

@VictorLamoine VictorLamoine deleted the vtk_OpenGL2_temp branch February 15, 2016 12:12
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

Successfully merging this pull request may close these issues.

2 participants