Openembedded Devel Discussions
 help / color / mirror / Atom feed
* [meta-qt5][RFC] qtbase: fix build for gles2 enabled by PACKAGECONFIG
@ 2013-10-28 23:06 Andreas Müller
  2013-10-28 23:06 ` Andreas Müller
  2013-10-29  7:07 ` Martin Jansa
  0 siblings, 2 replies; 5+ messages in thread
From: Andreas Müller @ 2013-10-28 23:06 UTC (permalink / raw)
  To: openembedded-devel

While playing around with QtQuick I needed gles2 support. Doing so I faced tons
of error messages as mentionet in patch. It is caused by include chain:

EGL/egl.h -> EGL/eglplatform.h -> X11/Xlib.h -> X.h

In X.h we find definitions like

#ifndef None
#define None                 0L	/* universal null resource or null atom */
#endif

This causes building Qt to crash when using these kind of symbols.

The patch was sent as RFC because:

1.  I would like ro discuss this at interest@qt-project.org and/or 
    development@qt-project.org but it was not possible to subscribe. I sent
    a mail to listmaster but no response either.
2.  qtbase_git might need same (and fails with the patch)
3.  This is not a proper solution: It is fragile and will return for future
    changes. Proper soultion would be renaming the symbols Qt but I cannot
    discuss due to 1.
4.  Nobody reported a build error for meta-qt5 so far.

Andreas Müller (1):
  qtbase: fix build for gles2 enabled by PACKAGECONFIG

 ...-reorder-includes-to-fix-build-with-eglfs.patch | 238 +++++++++++++++++++++
 recipes-qt/qt5/qtbase.inc                          |   1 +
 2 files changed, 239 insertions(+)
 create mode 100644 recipes-qt/qt5/qtbase-5.1.1/0027-reorder-includes-to-fix-build-with-eglfs.patch

-- 
1.8.3.1



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

end of thread, other threads:[~2013-10-29  8:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-28 23:06 [meta-qt5][RFC] qtbase: fix build for gles2 enabled by PACKAGECONFIG Andreas Müller
2013-10-28 23:06 ` Andreas Müller
2013-10-29  7:07 ` Martin Jansa
2013-10-29  8:14   ` Andreas Müller
2013-10-29  7:26     ` Martin Jansa

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