meta-qt5 / meta-qt5

QT5 layer for openembedded
MIT License
257 stars 327 forks source link

[dunfell] qtwebkit fails to build without 'x11' in DISTRO_FEATURES #466

Open vnd opened 2 years ago

vnd commented 2 years ago

I'm trying to build qtwebkit for i.MX6 board using meta-freescale, meta-qt5 and meta-webkit (Igalia), all dunfell.

With x11 in DISTRO_FEATURES qtwebkit builds fine, without:

| In file included from /home/ubuntu/coffee/dunfell/yocto/build/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/qtwebkit/5.14.2+gitAUTOINC+ab1bd15209-r0/recipe-sysroot/usr/include/EGL/egl.h:39,
|                  from /home/ubuntu/coffee/dunfell/yocto/build/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/qtwebkit/5.14.2+gitAUTOINC+ab1bd15209-r0/git/Source/WebCore/platform/graphics/opengl/Extensions3DOpe
nGLES.cpp:36:                                                                                                                                                                                           
| /home/ubuntu/coffee/dunfell/yocto/build/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/qtwebkit/5.14.2+gitAUTOINC+ab1bd15209-r0/recipe-sysroot/usr/include/EGL/eglplatform.h:150:10: fatal error: X11/Xlib.h: No
such file or directory                                                                                                              
|   150 | #include <X11/Xlib.h>                                                              
|       |          ^~~~~~~~~~~~           
| compilation terminated. 

DISTRO_FEATURES="acl alsa argp bluetooth ext2 ipv4 ipv6 largefile pcmcia usbgadget usbhost wifi xattr nfs zeroconf pci 3g nfc vfat largefile opengl multiarch wayland sysvinit gobject-introspection-data ldconfig"

It used to compile in krogoth without X11 just fine (we're using wayland/weston).

vnd commented 2 years ago

As a workaround, adding: #define WL_EGL_PLATFORM 1 to Source/WebCore/platform/graphics/opengl/Extensions3DOpenGLES.cpp fixes compilation.