Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v1 0/3] qt5: fix build issue with mesa w/out xcb
@ 2018-02-12  4:25 Gaël PORTAY
  2018-02-12  4:25 ` [Buildroot] [PATCH v1 1/3] qt5webkit: fix build issue with mesa3d " Gaël PORTAY
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Gaël PORTAY @ 2018-02-12  4:25 UTC (permalink / raw)
  To: buildroot

Hi all,

Julien Corjon and I have noticed a build issue with qtmultimedia,
qtwayland and qtwebkit modules when using mesa3d (as EGL backend)
without using XCB. When BR2_PACKAGE_LIBXCB is set the issue is gone.
Julien has opened an issue in Qt tracker[1].

The mesa's EGL/eglplatform.h header includes X11 headers unless the
macro MESA_EGL_NO_X11_HEADERS is defined[2].

	/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.

The workaround tells qmake to pass the cflag MESA_EGL_NO_X11_HEADERS to
make that prevents from including the missing X headers.

This workaround is performed in the situation when mesa3d is in use as
OpenGL EGL backend and when XCB library is *not* compiled.

[1]: https://bugreports.qt.io/browse/QTBUG-66233
[2]: https://github.com/mesa3d/mesa/blob/79ee1b2ff0b85f4eeb4165d23a7943c28d3a3d93/include/EGL/eglplatform.h#L109-L125

Regards,
Ga?l PORTAY (3):
  qt5webkit: fix build issue with mesa3d w/out xcb
  qt5multimedia: fix build issue with mesa3d w/out xcb
  qt5wayland: fix build issue with mesa3d w/out xcb

 package/qt5/qt5multimedia/qt5multimedia.mk | 11 ++++++++++-
 package/qt5/qt5wayland/qt5wayland.mk       |  9 +++++++++
 package/qt5/qt5webkit/qt5webkit.mk         | 11 ++++++++++-
 3 files changed, 29 insertions(+), 2 deletions(-)

-- 
2.15.1

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2018-02-27 21:01 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-12  4:25 [Buildroot] [PATCH v1 0/3] qt5: fix build issue with mesa w/out xcb Gaël PORTAY
2018-02-12  4:25 ` [Buildroot] [PATCH v1 1/3] qt5webkit: fix build issue with mesa3d " Gaël PORTAY
2018-02-27 21:00   ` Peter Korsgaard
2018-02-12  4:25 ` [Buildroot] [PATCH v1 2/3] qt5multimedia: " Gaël PORTAY
2018-02-27 21:01   ` Peter Korsgaard
2018-02-12  4:25 ` [Buildroot] [PATCH v1 3/3] qt5wayland: " Gaël PORTAY
2018-02-27 20:57   ` Peter Korsgaard
2018-02-22 16:47 ` [Buildroot] [PATCH v1 0/3] qt5: fix build issue with mesa " Gaël PORTAY
2018-02-22 18:32   ` Peter Seiderer
2018-02-27 20:56   ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox