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

Tweak build.zig to work with cross-compiling #3225

Merged
merged 1 commit into from Aug 6, 2023
Merged

Tweak build.zig to work with cross-compiling #3225

merged 1 commit into from Aug 6, 2023

Conversation

ghost
Copy link

@ghost ghost commented Aug 6, 2023

I made a similar change a while ago (#3090), but the same failure mode has reappeared for me when cross-compiling. I suspect the recent Zig updates have changed requirements. In particular, I see:

zig build-lib raylib Debug x86_64-linux-musl: error: error: unable to find Dynamic system library 'GL' using strategy 'paths_first'. searched paths: none
error: unable to find Dynamic system library 'X11' using strategy 'paths_first'. searched paths: none

This patch fixes it for me. I suspect similar changes are necessary for the other targets, but I only added this one because I haven't tested building from other targets.

@raysan5 raysan5 merged commit b82217e into raysan5:master Aug 6, 2023
12 checks passed
@raysan5
Copy link
Owner

raysan5 commented Aug 6, 2023

@yujiri8 thanks for the review!

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.

None yet

1 participant