-
-
Notifications
You must be signed in to change notification settings - Fork 152
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
glfw: Illegal instruction in pollEvents()
#75
Comments
i think this is because currently mach can't build for wayland |
Hi @alichraghi - thanks for the bug report! A few things:
-glfw.link(b, exe, .{});
+glfw.link(b, exe, .{.linux_window_manager = .Wayland}); It should "just work", but there may be unknown issues present. I wouldn't advise doing this however as GLFW's Wayland backend is still very immature, in the next version of GLFW there will be support for choosing between X11 and Wayland backends at runtime and so we will begin building for both by default. glfw/glfw#1958
|
pollEvents()
pollEvents()
thank you! #72 worked for X11. but adding
- .Wayland => "_D_GLFW_WAYLAND",
+ .Wayland => "-D_GLFW_WAYLAND", Line 126 in 82a9cf6
|
Ahh, okay. I will see if I can fix this soon (unless someone wants to try and sends PRs for it!) You're right about the typo. For wayland-xdg-shell, we will need to add the right apt packages to the |
Code
while the above code running, if you press a keyboard key that will crash with this messsage:
The text was updated successfully, but these errors were encountered: