Alright, I spend a few days trying to build it without glx and x11, which I
achieved in the end. But it is mess. EGL is not supported out of the box
because of OpenGLShims.h which doesn't get included. But including it causes
issues because glx is not present. Looking at the source code it seems the
workaround is to use libepoxy which is supported in WebCore thanks to
webkit-wpe but not in webkit-gtk (there is already a bug report regarding this
issue, but the proposed patch does not work anymore, and nothing has been done
since 2020). So I had to hack in the support. Even with that, some
auto-generated files still included EGL/egl.h instead of epoxy/egl.h, and I
could not figure out how to prevent it, so I had to link egl+libepoxy, which is
pretty ugly.
Maybe I'll post a patch if I can solve the autogenerated files includes
correctly.On Mar 12, 2021 4:52 PM, Carlos Alberto Lopez Perez
<clo...@igalia.com> wrote:
>
> On 12/03/2021 14:45, Quentin SCHIBLER wrote:
> > I agree, but from what I can understand when you want GL+EGL, libGL is not
> > built by mesa because it includes GLX, and what serves as the GPU driver
> > software is libEGL (instead of libGL). Which means webkitgtk should not ask
> > for the gl package when building with egl
>
> That is not correct.
> Please re-read my previous e-mail.
>
> On top of EGL you need either libGL.so or libGLESv2.so
>
_______________________________________________
webkit-gtk mailing list
webkit-gtk@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-gtk