i.MX6 Build Failure with Buildroot 2022.02 and fb-backend
-
I have a working buildroot build for a i.MX6-based board using buildroot 2015.11. It uses QT5 with a fb-backend, supported by Freescale i.MX6 GPU drivers. I use the qt5-webkit package for the main user interface. I'm trying to upgrade to buildroot 2022.02, but when I do so, the build of qt5-webkit fails with errors related to X11, even though I don't use X11 anywhere.
I have tried this two separate ways: (1) upgrading my buildroot config from 2015.11 to 2022.02 and (2) starting with a known good buildroot 2021.11 configuration that uses the fb-backend and qt5 (but not qt5-webkit), then making no changes except adding qt5-webkit via menuconfig. Both options fail the same way.
The board I'm using is based on the Boundary devices Nitrogen 6x board, so I reached out to them, and they suggested that it could be an issue with qt5-webkit not using pkgconfig properly
Here is a gist containing my .config file and partial build log including the error: https://gist.github.com/tjsmith23/59d2ebc9268ddb550896ab2380480413. The files are from the second method I mentioned above. The known good config I started with (and built successfully) can be found here: https://github.com/boundarydevices/buildroot-external-boundary/blob/master/configs/nitrogen6x_qt5_gst1_defconfig
For quick perusal, the error I'm hitting is as follows: In file included from .../host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/EGL/egl.h:39, from .../build/qt5webkit-5.212.0-alpha4/Source/WebCore/platform/graphics/opengl/Extensions3DOpenGLES.cpp:36: .../host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/EGL/eglplatform.h:145:10: fatal error: X11/Xlib.h: No such file or directory 145 | #include <X11/Xlib.h>