-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Use vendor-neutral OpenGL implementation instead of legacy GLX. #15778
Conversation
How would we go about fixing the CI build error for linux-c89? |
I don't quite understand why this c89 configuration tries to build code with GLX calls. |
@vanfanel For the Linux building of Github CI so we should check for C89_BUILD ? |
The c89 fails without this commit anyway.
edit moving that variable up one line will fix the build issue with C89_BUILD=1. Make sure libglvnd packages are installed on the buildbot, if you want to do it this way. |
@hunterk can you take a look? |
Hmm, fails with a bunch of glx linking errors on my machine, as well. :/ |
Same errors and I have libglvnd. |
How can it be? It just swaps Using OpenGL shouldn't imply using GLX code at all. That makes zero sense. |
you probably havent installed the libs what distro are you using ill get you the package names this is basic stuff though. apt install libglvnd0 if thats not installing the libs add a apt-get install libopengl0 and any other libs you might need if they dont auto install with libglvnd0. If its not ubuntu/debian tell me the distro ill get the package names for you. |
pushed a c89buildfix for the video preprocessor |
So it should build now? |
Good idea, but would it be possible to use -lGL if -lOpenGL isn't available? The |
Decided to approach this in a different way. You can build with vendor-neutral GL implementation by running this before compiling: ./configure --disable-glx |
I love how this ended up being solved :) |
Description
Nowadays vendor-neutral GL is used instead of GLX is used in all GNU/Linux distributions.
So, using
-lOpenGL
works for X11, KMS/DRM and Wayland, while legacy-lGL
only works for X11.Reviewers
@hunterk