-
-
Notifications
You must be signed in to change notification settings - Fork 10.6k
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
libGL.so.1 called libGL.so.3 on NetBSD #6983
Comments
Out of experience, I wouldn't underestimate the subtle problems caused by those things. However I noticed GL3W received an update: |
Pinging @rokups in case they would be interested in updating our copy to align to latest gl3w and possibly be more X11/Wayland friendly with EGL support. |
Worth noting this change actually happened as a result of #4810 (which is presumably still open as a reminder to merge those changes.) |
Thanks. I don’t have much access nor knowledge to linux and other unix based system so this would need a volunteer to catch up with it. As for OP’s specific issue it probably should be brought to main gl3w repo first. |
I do not really have any capacity left for anything lately.. Sorry |
I think you are all reading far more into what I wrote than there is. It really is as simple as, due to a historic accendent, the MesaLib that lives on other unix systems as
(libGL.so.3 happens to be MesaLib version 21.3.7 on my NetBSD box - really nothing out of the ordinary.) |
I'll add this change now but it feels rather odd that GL3W wouldn't have something like this already. |
…oad "libGL.so" instead of "libGL.so.1". (#6983)
Pushed to imgui/ and https://github.com/dearimgui/gl3w_stripped I used "libGL.so" as initially suggested: seems a little less "safe" (in the land of Unix OpenGL everything is a minefield) but I feel if there is a problem that's the best way to learn about it, and sooner. |
This fix does not work properly on some Linux distributions. In Ubuntu 22.04 x86_64 for example, there is a symlink |
@dpaulat It's not that clear-cut between distros. It's more that the |
…r.h to load "libGL.so" instead of "libGL.so.1". (ocornut#6983)" This reverts commit 0f50b52.
Pushed tentative fix a3eea8a, thanks for reporting! |
Unfortunately on NetBSD, MesaLib is installed as
/usr/X11R7/lib/libGL.so.3
, so to get dear imgui to find it, I needI suppose if you really care about the major number, you could #ifdef __NetBSD__, but it doesn't seem worth the complication, as chances are dear imgui will work with everyone elses
libGL.so.2
should it ever come out.The text was updated successfully, but these errors were encountered: