-
-
Notifications
You must be signed in to change notification settings - Fork 14.5k
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
How to depend on SDL2 (libGL error) #41620
Comments
Are you on non-NixOS Linux? |
Nope, I'm on NixOS. |
Then your |
My |
Since #37369, the libGL.so libraries are no longer in |
|
Fixes NixOS#41620 by adding libGL directory to libSDL2 runpath
Issue description
I hope opening an issue for this is appropriate. I'm using pysdl2 (meaning I have
pysdl2
in mypropagatedBuildInputs
), which depends on SDL2, of course. Initialization of SDL2 fails because it cannot findlibGL.so.1
.Looking at SDL2's source code, I see that it tries to
dlopen
either "libGL.so.1" (hard-coded) or whatever is insideSDL_OPENGL_LIBRARY
. To properly package my application, am I to create a wrapper script for my application that sets this environment variable? Or what's the recommended approach when depending on libGL? I'm aware of PR 37369 (glvnd), but I'm not sure how to react to it.The text was updated successfully, but these errors were encountered: