<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<body>
<div dir="auto">
<div dir="auto"><br></div><div dir="auto"><br></div>
<div id="aqm-original" style="color: black;">
<div dir="auto">On March 13, 2021 04:18:26 Quentin SCHIBLER <quentin.schibler@bbox.fr> wrote:</div>
<div><br></div>
<blockquote type="cite" class="gmail_quote" style="margin: 0 0 0 0.75ex; border-left: 1px solid #808080; padding-left: 0.75ex;">
<div dir="auto">GLVND depends on several X librairies. Does it means you cannot have OpenGL on wayland without X ?</div></blockquote></div><div dir="auto"><br></div><div dir="auto">Yes and no. libGL.so on Linux depends on X11 for historical reasons. The short version is that, long ago, libGL.so exposed all its symbols directly, including GLX symbols, and a dependency on X11. We've since learned better and any new/recentish entrypoints are only exposed via glGetProcAddress. Unfortunately, we can't really clean up they mess without breaking backwards compatibility.</div><div dir="auto"><br></div><div dir="auto">With GLVND, we did do the next best thing. There is now a new libOpenGL.so which has a much reduced set of symbols and, IIRC, no X11 dependency. This means that it is possible to run desktop OpenGL without pulling in an X11 dependency, assuming the app is built to link against the new library.</div><div dir="auto"><br></div><div dir="auto">More importantly than all that, however, is that your really shouldn't worry about the X11 dependency. If you have a pure Wayland app which uses OpenGL, it'll work fine. It might load Xlib or XCB into it's address space but that code will never be executed. The above are only really issues for people who are desperate to run a system without any X11 installed which, IMO, is a pretty pointless goal.</div><div dir="auto"><br></div><div dir="auto">--Jason</div><div dir="auto"><br></div><div dir="auto"><br></div><div id="aqm-original" style="color: black;" dir="auto"><blockquote type="cite" class="gmail_quote" style="margin: 0 0 0 0.75ex; border-left: 1px solid #808080; padding-left: 0.75ex;"><div dir="auto">Onn Mar 12, 2021 11:48 AM, Michel Dänzer <michel@daenzer.net> wrote:</div>
<blockquote type="cite" class="gmail_quote" style="margin: 0 0 0 0.75ex; border-left: 1px solid #0099CC; padding-left: 0.75ex;">
<div dir="auto"><br></div>
<div dir="auto">On 2021-03-11 12:14 a.m., Quentin SCHIBLER wrote: </div>
<blockquote type="cite" class="gmail_quote" style="margin: 0 0 0 0.75ex; border-left: 1px solid #9933CC; padding-left: 0.75ex;">
<div dir="auto">I have built mesa with wayland platform, gbm and egl enabled, glx disabled, gles1 disabled and gles2 enabled. </div>
<div dir="auto">The build is successful, but I cannot find libGL.so. libGLES2.so is present, and GL includes files are also present. </div>
</blockquote>
<div dir="auto"><br></div>
<div dir="auto">libGL includes GLX APIs, so it cannot be built with -Dglx=false. </div>
<div dir="auto"><br></div>
<div dir="auto">If you want to avoid GLX, you can use GLVND's libOpenGL instead. </div>
<div dir="auto"><br></div>
<div dir="auto"><br></div>
<div dir="auto">-- </div>
<div dir="auto">Earthling Michel Dänzer | https://redhat.com </div>
<div dir="auto">Libre software enthusiast | Mesa and X developer </div>
</blockquote>
<div dir="auto">_______________________________________________</div>
<div dir="auto">mesa-dev mailing list</div>
<div dir="auto">mesa-dev@lists.freedesktop.org</div>
<div dir="auto">https://lists.freedesktop.org/mailman/listinfo/mesa-dev</div>
</blockquote>
</div><div dir="auto"><br></div>
</div></body>
</html>