Skip to content

Conversation

@mjakeman
Copy link
Contributor

Fixes an issue where zgui brings in a non-0.14 compatible version of zsdl, breaking the final build.

This only seems to happen if you use all of zgui + zsdl + zsdl-prebuilt*.

My understanding of the problem is:

  • zsdl was updated to support the new build.zig syntax in zig-gamedev/zsdl@b080476
  • However zgui has an optional dependency pointing to zig-gamedev/zsdl@cd29a0b which doesn't include these changes
  • Zig decides to pull in both versions of zsdl, therefore pulling in the old and new versions of the prebuilt libraries at the same time.
  • The old prebuilt libraries use .@"sdl2-prebuilt-macos" which isn't supported, but Zig appears to suggest the error is coming from the new library (or at least is confusingly worded)

Bumping the dependency fixes things for me

@hazeycode hazeycode merged commit c203293 into zig-gamedev:main Mar 30, 2025
3 checks passed
ckrowland pushed a commit to ckrowland/zgui that referenced this pull request Jul 1, 2025
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