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

Fix opengl cmake for latest VTK #69

Merged
merged 9 commits into from
Oct 8, 2024
Merged

Conversation

jspanchu
Copy link
Member

@jspanchu jspanchu commented Oct 7, 2024

This PR updates the CMake and vtk.module files.

  • It correctly handles the definition of VTK_USE_COCOA macro. The previous approach is not the recommended way.
  • Removes explicit dependency on VTK::opengl. The dependency on VTK::RenderingOpenGL2 should've been sufficient.

- Instead of adding the definition manually, the recommended practice is to include `vtkRenderingOpenGLConfigure.h`. This is already used in `vtkLookingGlassInterface.cxx`
- This module is no longer available in VTK.
@jspanchu jspanchu force-pushed the fix-opengl-cmake branch 4 times, most recently from 836942e to ef4c8be Compare October 7, 2024 15:58
@jspanchu
Copy link
Member Author

jspanchu commented Oct 7, 2024

@sankhesh, Actions are green! could you get someone with access to the device test out this PR?

@sankhesh
Copy link
Contributor

sankhesh commented Oct 8, 2024

@psavery has a device to test with.

Copy link
Contributor

@sankhesh sankhesh left a comment

Choose a reason for hiding this comment

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

LGTM

@psavery
Copy link
Collaborator

psavery commented Oct 8, 2024

I'll give it a quick try

@psavery
Copy link
Collaborator

psavery commented Oct 8, 2024

This worked for me, although I'll note that my device is no longer supported by Looking Glass, and I have to use an older version of their service that they don't support anymore either.

However, since this PR is not intending to upgrade to their newer versions of the API, it looks good to me! Merge when ready.

@jspanchu
Copy link
Member Author

jspanchu commented Oct 8, 2024

Thanks for testing @psavery! Can someone with write access please merge this PR?

@psavery psavery merged commit 89b4ded into Kitware:master Oct 8, 2024
4 checks passed
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.

3 participants