-
Notifications
You must be signed in to change notification settings - Fork 135
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
Wayland? #119
Comments
Update: the upstream Raylib examples do not work out of the box for me either, so this is not an issue with raylib-rs. My apologies. |
Update! I traced the issue with raylib upstream through glfw to me not having wayland-protocols installed. After installing that and rebuilding, raylib works natively on wayland for me, raylib-rs still does not. |
wouldn't this issue be resolved after #127 was merged? |
Ah! Sorry, I didn't get a notification on this. Using the master version, I got a project using this crate to build but it segfaults on start, just after saying |
I wonder if this could have to do with libc issues. I've switched to a musl distribution (Alpine) since |
Indeed, it seems to work back on my Artix installation. RIP |
I checked out upstream raylib 3.7 and could run the examples on my system without segfault |
Update: by editing the downloaded C source in ~/.cargo/git/checkouts, I deducated that the problem is some sort of failure to load glfw, as the segfault occurs at the first call to glfw. I don't know why. I've got glfw-wayland-dev installed, and the compiled binary for my project when examined with ldd shows:
(interestingly, for some reason if built in x mode, ldd shows only ld-musl-x86_64) |
Whoa, this workaround solved it for me! |
Running the hello world example for me is producing on wayland native is producing this error:
I heard from the Nim bindings that Raylib is supposed to support Wayland, so does anyone know what I'd need to do to get that to work here? I tried installing packages for raylib and glfw-wayland just incase but that didn't have any effect.
OS: Artix Linux
The text was updated successfully, but these errors were encountered: