How do I statically link GLFW on Linux? #3375
Replies: 1 comment
-
Regarding the not-working part of EDIT 1, it seems to have been an Nvidia + Wayland issue, it works on X11. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It only works when installed through the distribution repository.
I tried changing the path value in
vendor/glfw/bindings/bindings.odin
on line 41 fromsystem:glfw
to the path of the .a library as on line 34, but I get this error:/Odin/vendor/glfw/lib/darwin/libglfw3.a: file not recognized: file format not recognized
EDIT: I also built GLFW myself and put it into a new "linux" directory I created in
vendor/glfw/lib
. It seems to link correctly, but I got a window creation error:libEGL warning: egl: failed to create dri2 screen
Could not create window
(this is printed by me)EDIT 2: I created an issue for this.
Beta Was this translation helpful? Give feedback.
All reactions