Skip to content

Conversation

kusma
Copy link
Contributor

@kusma kusma commented May 21, 2025

Freeglut requires GL/glu.h, which isn't always installed. Make sure we check for it, so we can get a meaningful error message early on instead of just failing to compile.

Because not all platforms has glu as a dependency, we also need to fall back to searching for the library. This search is copied from Mesa's demos project.

@kusma kusma force-pushed the freeglut-search-for-glu branch from de8d1bf to 94e3882 Compare May 21, 2025 11:38
@kusma
Copy link
Contributor Author

kusma commented May 21, 2025

Seems like the MacOS build failure is caused by a github-actions issue: actions/runner-images#9966

@kusma
Copy link
Contributor Author

kusma commented May 21, 2025

Yeah, testing this locally works fine...

Copy link

@paulmenzel paulmenzel left a comment

Choose a reason for hiding this comment

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

Thank you for coming up with a fix for my issue https://gitlab.freedesktop.org/mesa/demos/-/issues/50. The diff looks good to me.

@kusma kusma force-pushed the freeglut-search-for-glu branch from 6d4eff0 to 9fe557a Compare June 23, 2025 14:53
kusma added 2 commits July 18, 2025 17:05
Freeglut requires GL/glu.h, which isn't always installed. Make sure we
check for it, so we can get a meaningful error message early on instead
of just failing to compile.

Because not all platforms has glu as a dependency, we also need to fall
back to searching for the library. This search is copied from Mesa's
demos project.
Seems there's an issue where recent python versions will conflict with
the version provided by the runner-image. Let's try to work around it.

This feels a bit hacky, because we need to hard-code the specific
version, suggestions for improvements welcome.

See this ticket for details:
actions/runner-images#9966
@kusma kusma force-pushed the freeglut-search-for-glu branch from 9fe557a to 973cd2f Compare July 18, 2025 15:06
@kusma
Copy link
Contributor Author

kusma commented Jul 18, 2025

The alpine failures seems unrelated to this MR...

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