fadaaabe6f
The mesa's EGL/eglplatform.h header includes X11 headers unless the flag
MESA_EGL_NO_X11_HEADERS is defined[1].
A build issue happens when mesa3d is selected as then OpenGL EGL backend
but the XCB library is not selected.
This commit tells qmake to pass the cflag MESA_EGL_NO_X11_HEADERS to
make and prevent from including the missing X headers.
The issue QTBUG-66233 is opened in the Qt tracker[1].
Fixes:
In file included from
/home/gportay/src/buildroot/output-qt5.10/host/x86_64-buildroot-linux-gnu/sysroot/usr/include/EGL/egl.h:39:0,
from qsgvideonode_egl.h:48,
from qsgvideonode_egl.cpp:40:
/home/gportay/src/buildroot/output-qt5.10/host/x86_64-buildroot-linux-gnu/sysroot/usr/include/EGL/eglplatform.h:118:22:
fatal error: X11/Xlib.h: No such file or directory
#include <X11/Xlib.h>
^
compilation terminated.
Makefile:550: recipe for target '.obj/qsgvideonode_egl.o' failed
[1]:
|
||
---|---|---|
.. | ||
qt5base | ||
qt5canvas3d | ||
qt5charts | ||
qt5connectivity | ||
qt5declarative | ||
qt5enginio | ||
qt5graphicaleffects | ||
qt5imageformats | ||
qt5location | ||
qt5multimedia | ||
qt5quickcontrols | ||
qt5quickcontrols2 | ||
qt5script | ||
qt5scxml | ||
qt5sensors | ||
qt5serialbus | ||
qt5serialport | ||
qt5svg | ||
qt5tools | ||
qt5virtualkeyboard | ||
qt5wayland | ||
qt5webchannel | ||
qt5webengine | ||
qt5webkit | ||
qt5webkit-examples | ||
qt5websockets | ||
qt5x11extras | ||
qt5xmlpatterns | ||
qt53d | ||
Config.in | ||
qt5.mk |