From: Peter Korsgaard Date: Tue, 27 Feb 2018 22:00:44 +0100 Subject: [Buildroot] [PATCH v1 1/3] qt5webkit: fix build issue with mesa3d w/out xcb In-Reply-To: <20180212042524.28675-2-gael.portay@savoirfairelinux.com> (=?utf-8?Q?=22Ga=C3=ABl?= PORTAY"'s message of "Sun, 11 Feb 2018 23:25:22 -0500") References: <20180212042524.28675-1-gael.portay@savoirfairelinux.com> <20180212042524.28675-2-gael.portay@savoirfairelinux.com> Message-ID: <87tvu2m9kz.fsf@dell.be.48ers.dk> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net >>>>> "Ga?l" == Ga?l PORTAY writes: > 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 platform/graphics/opengl/Extensions3DOpenGLES.cpp:33: > /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 > ^ > compilation terminated. > Makefile.WebCore.Target:93596: recipe for target '.obj/platform/graphics/opengl/Extensions3DOpenGLES.o' failed > [1]: https://github.com/mesa3d/mesa/blob/79ee1b2ff0b85f4eeb4165d23a7943c28d3a3d93/include/EGL/eglplatform.h#L109-L125 > [2]: https://bugreports.qt.io/browse/QTBUG-66233 > Cc: Julien CORJON > Signed-off-by: Ga?l PORTAY Committed after simplifying, thanks. -- Bye, Peter Korsgaard