Skip to content
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

libepoxy looks for libGLX.so.1, which doesn't exist #295

Open
jhenstridge opened this issue Jan 11, 2024 · 0 comments
Open

libepoxy looks for libGLX.so.1, which doesn't exist #295

jhenstridge opened this issue Jan 11, 2024 · 0 comments

Comments

@jhenstridge
Copy link

libepoxy tries to dlopen libGLX.so.1 as a GL implementation:

#define GLVND_GLX_LIB "libGLX.so.1"
#define GLX_LIB "libGL.so.1"

# ifdef GLVND_GLX_LIB
/* prefer the glvnd library if it exists */
if (!api.glx_handle)
get_dlopen_handle(&api.glx_handle, GLVND_GLX_LIB, false, load);
# endif
if (!api.glx_handle)
get_dlopen_handle(&api.glx_handle, GLX_LIB, exit_if_fails, load);
#endif

But glvnd builds libGLX.so.0 (as can be seen e.g. here and here). So the code path is always going to fall back to loading libGL.so.1.

Trying to open a library version that doesn't yet exist seems like a bad idea: what if it eventually does get created and doesn't have the expected ABI?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant