All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-qt5][PATCH] fix build of qtbase with "gles2" package config
@ 2015-02-26 13:11 Stephan Binner
  2015-02-26 20:25 ` Andreas Müller
  2015-02-27  0:01 ` Jonathan Liu
  0 siblings, 2 replies; 4+ messages in thread
From: Stephan Binner @ 2015-02-26 13:11 UTC (permalink / raw)
  To: openembedded-devel


---
 .../qtbase/0014-fix-build-of-egl-integration.patch | 181 +++++++++++++++++++++
 recipes-qt/qt5/qtbase_5.4.1.bb                     |   5 +
 2 files changed, 186 insertions(+)
 create mode 100644 recipes-qt/qt5/qtbase/0014-fix-build-of-egl-integration.patch

diff --git a/recipes-qt/qt5/qtbase/0014-fix-build-of-egl-integration.patch b/recipes-qt/qt5/qtbase/0014-fix-build-of-egl-integration.patch
new file mode 100644
index 0000000..f21e820
--- /dev/null
+++ b/recipes-qt/qt5/qtbase/0014-fix-build-of-egl-integration.patch
@@ -0,0 +1,181 @@
+commit f8c8c79029867a087c9a753269d82b808c16f047
+Author: Stephan Binner <stephan.binner@basyskom.com>
+Date:   Mon Feb 2 13:10:50 2015 +0100
+
+    Fix build of egl integration
+    
+    Add missing includes and reorder includes to avoid X defines breakage
+    
+    Change-Id: Iaf95ae2488df3d3301436262ed79f7091b4be0a9
+    Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
+
+diff --git a/src/platformsupport/eglconvenience/qeglplatformcontext_p.h b/src/platformsupport/eglconvenience/qeglplatformcontext_p.h
+index 7825c7b..0c10710 100644
+--- a/src/platformsupport/eglconvenience/qeglplatformcontext_p.h
++++ b/src/platformsupport/eglconvenience/qeglplatformcontext_p.h
+@@ -45,6 +45,7 @@
+ // We mean it.
+ //
+ 
++#include <QtCore/qtextstream.h>
+ #include <qpa/qplatformwindow.h>
+ #include <qpa/qplatformopenglcontext.h>
+ #include <QtCore/QVariant>
+diff --git a/src/platformsupport/eglconvenience/qeglplatformintegration_p.h b/src/platformsupport/eglconvenience/qeglplatformintegration_p.h
+index 4d7adce..2b5d5f5 100644
+--- a/src/platformsupport/eglconvenience/qeglplatformintegration_p.h
++++ b/src/platformsupport/eglconvenience/qeglplatformintegration_p.h
+@@ -45,9 +45,9 @@
+ // We mean it.
+ //
+ 
++#include <QtCore/QVariant>
+ #include <qpa/qplatformintegration.h>
+ #include <qpa/qplatformnativeinterface.h>
+-#include <QtCore/QVariant>
+ #include <EGL/egl.h>
+ 
+ QT_BEGIN_NAMESPACE
+diff --git a/src/plugins/platforms/eglfs/qeglfscontext.cpp b/src/plugins/platforms/eglfs/qeglfscontext.cpp
+index 6216fa8..6470280 100644
+--- a/src/plugins/platforms/eglfs/qeglfscontext.cpp
++++ b/src/plugins/platforms/eglfs/qeglfscontext.cpp
+@@ -31,15 +31,16 @@
+ **
+ ****************************************************************************/
+ 
+-#include "qeglfscontext.h"
+-#include "qeglfswindow.h"
+-#include "qeglfshooks.h"
++#include <QtGui/QSurface>
++#include <QtDebug>
+ 
++#include <QtPlatformSupport/private/qeglplatformcursor_p.h>
+ #include <QtPlatformSupport/private/qeglconvenience_p.h>
+ #include <QtPlatformSupport/private/qeglpbuffer_p.h>
+-#include <QtPlatformSupport/private/qeglplatformcursor_p.h>
+-#include <QtGui/QSurface>
+-#include <QtDebug>
++
++#include "qeglfswindow.h"
++#include "qeglfshooks.h"
++#include "qeglfscontext.h"
+ 
+ QT_BEGIN_NAMESPACE
+ 
+diff --git a/src/plugins/platforms/eglfs/qeglfshooks_stub.cpp b/src/plugins/platforms/eglfs/qeglfshooks_stub.cpp
+index 26d77a2..120c603 100644
+--- a/src/plugins/platforms/eglfs/qeglfshooks_stub.cpp
++++ b/src/plugins/platforms/eglfs/qeglfshooks_stub.cpp
+@@ -31,10 +31,10 @@
+ **
+ ****************************************************************************/
+ 
+-#include "qeglfshooks.h"
+ #include <QtPlatformSupport/private/qeglplatformcursor_p.h>
+ #include <QtPlatformSupport/private/qeglconvenience_p.h>
+ #include <QtCore/QRegularExpression>
++#include "qeglfshooks.h"
+ 
+ #if defined(Q_OS_LINUX)
+ #include <fcntl.h>
+diff --git a/src/plugins/platforms/eglfs/qeglfsintegration.cpp b/src/plugins/platforms/eglfs/qeglfsintegration.cpp
+index 2a4eae3..fbdd1d4 100644
+--- a/src/plugins/platforms/eglfs/qeglfsintegration.cpp
++++ b/src/plugins/platforms/eglfs/qeglfsintegration.cpp
+@@ -31,26 +31,26 @@
+ **
+ ****************************************************************************/
+ 
+-#include "qeglfsintegration.h"
++#include <QtCore/qtextstream.h>
++#include <QtGui/private/qguiapplication_p.h>
++
++#include <qpa/qplatformwindow.h>
++#include <QtGui/QSurfaceFormat>
++#include <QtGui/QOpenGLContext>
++#include <QtGui/QScreen>
++#include <QtGui/QOffscreenSurface>
++#include <qpa/qplatformcursor.h>
+ 
++#include "qeglfsintegration.h"
+ #include "qeglfswindow.h"
+ #include "qeglfshooks.h"
+ #include "qeglfscontext.h"
+ 
+-#include <QtGui/private/qguiapplication_p.h>
+-
+ #include <QtPlatformSupport/private/qeglconvenience_p.h>
+ #include <QtPlatformSupport/private/qeglplatformcontext_p.h>
+ #include <QtPlatformSupport/private/qeglpbuffer_p.h>
+ #include <QtPlatformHeaders/QEGLNativeContext>
+ 
+-#include <qpa/qplatformwindow.h>
+-#include <QtGui/QSurfaceFormat>
+-#include <QtGui/QOpenGLContext>
+-#include <QtGui/QScreen>
+-#include <QtGui/QOffscreenSurface>
+-#include <qpa/qplatformcursor.h>
+-
+ #include <EGL/egl.h>
+ 
+ static void initResources()
+diff --git a/src/plugins/platforms/eglfs/qeglfsscreen.cpp b/src/plugins/platforms/eglfs/qeglfsscreen.cpp
+index cd68540..bc93fe2 100644
+--- a/src/plugins/platforms/eglfs/qeglfsscreen.cpp
++++ b/src/plugins/platforms/eglfs/qeglfsscreen.cpp
+@@ -31,10 +31,12 @@
+ **
+ ****************************************************************************/
+ 
++#include <QtCore/qtextstream.h>
++#include <QtPlatformSupport/private/qeglplatformcursor_p.h>
++
+ #include "qeglfsscreen.h"
+ #include "qeglfswindow.h"
+ #include "qeglfshooks.h"
+-#include <QtPlatformSupport/private/qeglplatformcursor_p.h>
+ 
+ QT_BEGIN_NAMESPACE
+ 
+diff --git a/src/plugins/platforms/eglfs/qeglfswindow.cpp b/src/plugins/platforms/eglfs/qeglfswindow.cpp
+index f5839e0..39a3ef9 100644
+--- a/src/plugins/platforms/eglfs/qeglfswindow.cpp
++++ b/src/plugins/platforms/eglfs/qeglfswindow.cpp
+@@ -31,8 +31,7 @@
+ **
+ ****************************************************************************/
+ 
+-#include "qeglfswindow.h"
+-#include "qeglfshooks.h"
++#include <QtCore/qtextstream.h>
+ #include <qpa/qwindowsysteminterface.h>
+ #include <qpa/qplatformintegration.h>
+ #include <private/qguiapplication_p.h>
+@@ -40,6 +39,9 @@
+ #include <QtPlatformSupport/private/qeglplatformcursor_p.h>
+ #include <QtPlatformSupport/private/qeglconvenience_p.h>
+ 
++#include "qeglfswindow.h"
++#include "qeglfshooks.h"
++
+ #include <QtDebug>
+ 
+ QT_BEGIN_NAMESPACE
+diff --git a/src/plugins/platforms/minimalegl/qminimaleglwindow.cpp b/src/plugins/platforms/minimalegl/qminimaleglwindow.cpp
+index 906a130..d4bee2c 100644
+--- a/src/plugins/platforms/minimalegl/qminimaleglwindow.cpp
++++ b/src/plugins/platforms/minimalegl/qminimaleglwindow.cpp
+@@ -31,10 +31,10 @@
+ **
+ ****************************************************************************/
+ 
+-#include "qminimaleglwindow.h"
+-
+ #include <qpa/qwindowsysteminterface.h>
+ 
++#include "qminimaleglwindow.h"
++
+ QT_BEGIN_NAMESPACE
+ 
+ QMinimalEglWindow::QMinimalEglWindow(QWindow *w)
diff --git a/recipes-qt/qt5/qtbase_5.4.1.bb b/recipes-qt/qt5/qtbase_5.4.1.bb
index 6215e82..d423219 100644
--- a/recipes-qt/qt5/qtbase_5.4.1.bb
+++ b/recipes-qt/qt5/qtbase_5.4.1.bb
@@ -1,5 +1,10 @@
 require qt5-${PV}.inc
 require ${PN}.inc
 
+# This patch is in 5.4 branch but didn't make it into 5.4.1 release
+SRC_URI += "\
+    file://0014-fix-build-of-egl-integration.patch \
+"
+
 SRC_URI[md5sum] = "9507825e558c980fed602de1f16ec7ae"
 SRC_URI[sha256sum] = "8574a593830959c0f7e5430fe77a43832ea7f5299e14a397a74576b3df7fb1b7"
-- 
1.9.1





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

* Re: [meta-qt5][PATCH] fix build of qtbase with "gles2" package config
  2015-02-26 13:11 [meta-qt5][PATCH] fix build of qtbase with "gles2" package config Stephan Binner
@ 2015-02-26 20:25 ` Andreas Müller
  2015-02-27  7:59   ` Stephan Binner
  2015-02-27  0:01 ` Jonathan Liu
  1 sibling, 1 reply; 4+ messages in thread
From: Andreas Müller @ 2015-02-26 20:25 UTC (permalink / raw)
  To: openembedded-devel@lists.openembedded.org

On Thu, Feb 26, 2015 at 2:11 PM, Stephan Binner
<stephan.binner@basyskom.com> wrote:
>
> ---
>  .../qtbase/0014-fix-build-of-egl-integration.patch | 181 +++++++++++++++++++++
>  recipes-qt/qt5/qtbase_5.4.1.bb                     |   5 +
>  2 files changed, 186 insertions(+)
>  create mode 100644 recipes-qt/qt5/qtbase/0014-fix-build-of-egl-integration.patch
>
> diff --git a/recipes-qt/qt5/qtbase/0014-fix-build-of-egl-integration.patch b/recipes-qt/qt5/qtbase/0014-fix-build-of-egl-integration.patch
> new file mode 100644
> index 0000000..f21e820
> --- /dev/null
> +++ b/recipes-qt/qt5/qtbase/0014-fix-build-of-egl-integration.patch
> @@ -0,0 +1,181 @@
> +commit f8c8c79029867a087c9a753269d82b808c16f047
> +Author: Stephan Binner <stephan.binner@basyskom.com>
> +Date:   Mon Feb 2 13:10:50 2015 +0100
> +
> +    Fix build of egl integration
> +
> +    Add missing includes and reorder includes to avoid X defines breakage
> +
> +    Change-Id: Iaf95ae2488df3d3301436262ed79f7091b4be0a9
> +    Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
> +
> +diff --git a/src/platformsupport/eglconvenience/qeglplatformcontext_p.h b/src/platformsupport/eglconvenience/qeglplatformcontext_p.h
> +index 7825c7b..0c10710 100644
> +--- a/src/platformsupport/eglconvenience/qeglplatformcontext_p.h
> ++++ b/src/platformsupport/eglconvenience/qeglplatformcontext_p.h
> +@@ -45,6 +45,7 @@
> + // We mean it.
> + //
> +
> ++#include <QtCore/qtextstream.h>
> + #include <qpa/qplatformwindow.h>
> + #include <qpa/qplatformopenglcontext.h>
> + #include <QtCore/QVariant>
> +diff --git a/src/platformsupport/eglconvenience/qeglplatformintegration_p.h b/src/platformsupport/eglconvenience/qeglplatformintegration_p.h
> +index 4d7adce..2b5d5f5 100644
> +--- a/src/platformsupport/eglconvenience/qeglplatformintegration_p.h
> ++++ b/src/platformsupport/eglconvenience/qeglplatformintegration_p.h
> +@@ -45,9 +45,9 @@
> + // We mean it.
> + //
> +
> ++#include <QtCore/QVariant>
> + #include <qpa/qplatformintegration.h>
> + #include <qpa/qplatformnativeinterface.h>
> +-#include <QtCore/QVariant>
> + #include <EGL/egl.h>
> +
> + QT_BEGIN_NAMESPACE
> +diff --git a/src/plugins/platforms/eglfs/qeglfscontext.cpp b/src/plugins/platforms/eglfs/qeglfscontext.cpp
> +index 6216fa8..6470280 100644
> +--- a/src/plugins/platforms/eglfs/qeglfscontext.cpp
> ++++ b/src/plugins/platforms/eglfs/qeglfscontext.cpp
> +@@ -31,15 +31,16 @@
> + **
> + ****************************************************************************/
> +
> +-#include "qeglfscontext.h"
> +-#include "qeglfswindow.h"
> +-#include "qeglfshooks.h"
> ++#include <QtGui/QSurface>
> ++#include <QtDebug>
> +
> ++#include <QtPlatformSupport/private/qeglplatformcursor_p.h>
> + #include <QtPlatformSupport/private/qeglconvenience_p.h>
> + #include <QtPlatformSupport/private/qeglpbuffer_p.h>
> +-#include <QtPlatformSupport/private/qeglplatformcursor_p.h>
> +-#include <QtGui/QSurface>
> +-#include <QtDebug>
> ++
> ++#include "qeglfswindow.h"
> ++#include "qeglfshooks.h"
> ++#include "qeglfscontext.h"
> +
> + QT_BEGIN_NAMESPACE
> +
> +diff --git a/src/plugins/platforms/eglfs/qeglfshooks_stub.cpp b/src/plugins/platforms/eglfs/qeglfshooks_stub.cpp
> +index 26d77a2..120c603 100644
> +--- a/src/plugins/platforms/eglfs/qeglfshooks_stub.cpp
> ++++ b/src/plugins/platforms/eglfs/qeglfshooks_stub.cpp
> +@@ -31,10 +31,10 @@
> + **
> + ****************************************************************************/
> +
> +-#include "qeglfshooks.h"
> + #include <QtPlatformSupport/private/qeglplatformcursor_p.h>
> + #include <QtPlatformSupport/private/qeglconvenience_p.h>
> + #include <QtCore/QRegularExpression>
> ++#include "qeglfshooks.h"
> +
> + #if defined(Q_OS_LINUX)
> + #include <fcntl.h>
> +diff --git a/src/plugins/platforms/eglfs/qeglfsintegration.cpp b/src/plugins/platforms/eglfs/qeglfsintegration.cpp
> +index 2a4eae3..fbdd1d4 100644
> +--- a/src/plugins/platforms/eglfs/qeglfsintegration.cpp
> ++++ b/src/plugins/platforms/eglfs/qeglfsintegration.cpp
> +@@ -31,26 +31,26 @@
> + **
> + ****************************************************************************/
> +
> +-#include "qeglfsintegration.h"
> ++#include <QtCore/qtextstream.h>
> ++#include <QtGui/private/qguiapplication_p.h>
> ++
> ++#include <qpa/qplatformwindow.h>
> ++#include <QtGui/QSurfaceFormat>
> ++#include <QtGui/QOpenGLContext>
> ++#include <QtGui/QScreen>
> ++#include <QtGui/QOffscreenSurface>
> ++#include <qpa/qplatformcursor.h>
> +
> ++#include "qeglfsintegration.h"
> + #include "qeglfswindow.h"
> + #include "qeglfshooks.h"
> + #include "qeglfscontext.h"
> +
> +-#include <QtGui/private/qguiapplication_p.h>
> +-
> + #include <QtPlatformSupport/private/qeglconvenience_p.h>
> + #include <QtPlatformSupport/private/qeglplatformcontext_p.h>
> + #include <QtPlatformSupport/private/qeglpbuffer_p.h>
> + #include <QtPlatformHeaders/QEGLNativeContext>
> +
> +-#include <qpa/qplatformwindow.h>
> +-#include <QtGui/QSurfaceFormat>
> +-#include <QtGui/QOpenGLContext>
> +-#include <QtGui/QScreen>
> +-#include <QtGui/QOffscreenSurface>
> +-#include <qpa/qplatformcursor.h>
> +-
> + #include <EGL/egl.h>
> +
> + static void initResources()
> +diff --git a/src/plugins/platforms/eglfs/qeglfsscreen.cpp b/src/plugins/platforms/eglfs/qeglfsscreen.cpp
> +index cd68540..bc93fe2 100644
> +--- a/src/plugins/platforms/eglfs/qeglfsscreen.cpp
> ++++ b/src/plugins/platforms/eglfs/qeglfsscreen.cpp
> +@@ -31,10 +31,12 @@
> + **
> + ****************************************************************************/
> +
> ++#include <QtCore/qtextstream.h>
> ++#include <QtPlatformSupport/private/qeglplatformcursor_p.h>
> ++
> + #include "qeglfsscreen.h"
> + #include "qeglfswindow.h"
> + #include "qeglfshooks.h"
> +-#include <QtPlatformSupport/private/qeglplatformcursor_p.h>
> +
> + QT_BEGIN_NAMESPACE
> +
> +diff --git a/src/plugins/platforms/eglfs/qeglfswindow.cpp b/src/plugins/platforms/eglfs/qeglfswindow.cpp
> +index f5839e0..39a3ef9 100644
> +--- a/src/plugins/platforms/eglfs/qeglfswindow.cpp
> ++++ b/src/plugins/platforms/eglfs/qeglfswindow.cpp
> +@@ -31,8 +31,7 @@
> + **
> + ****************************************************************************/
> +
> +-#include "qeglfswindow.h"
> +-#include "qeglfshooks.h"
> ++#include <QtCore/qtextstream.h>
> + #include <qpa/qwindowsysteminterface.h>
> + #include <qpa/qplatformintegration.h>
> + #include <private/qguiapplication_p.h>
> +@@ -40,6 +39,9 @@
> + #include <QtPlatformSupport/private/qeglplatformcursor_p.h>
> + #include <QtPlatformSupport/private/qeglconvenience_p.h>
> +
> ++#include "qeglfswindow.h"
> ++#include "qeglfshooks.h"
> ++
> + #include <QtDebug>
> +
> + QT_BEGIN_NAMESPACE
> +diff --git a/src/plugins/platforms/minimalegl/qminimaleglwindow.cpp b/src/plugins/platforms/minimalegl/qminimaleglwindow.cpp
> +index 906a130..d4bee2c 100644
> +--- a/src/plugins/platforms/minimalegl/qminimaleglwindow.cpp
> ++++ b/src/plugins/platforms/minimalegl/qminimaleglwindow.cpp
> +@@ -31,10 +31,10 @@
> + **
> + ****************************************************************************/
> +
> +-#include "qminimaleglwindow.h"
> +-
> + #include <qpa/qwindowsysteminterface.h>
> +
> ++#include "qminimaleglwindow.h"
> ++
> + QT_BEGIN_NAMESPACE
> +
> + QMinimalEglWindow::QMinimalEglWindow(QWindow *w)
> diff --git a/recipes-qt/qt5/qtbase_5.4.1.bb b/recipes-qt/qt5/qtbase_5.4.1.bb
> index 6215e82..d423219 100644
> --- a/recipes-qt/qt5/qtbase_5.4.1.bb
> +++ b/recipes-qt/qt5/qtbase_5.4.1.bb
> @@ -1,5 +1,10 @@
>  require qt5-${PV}.inc
>  require ${PN}.inc
>
> +# This patch is in 5.4 branch but didn't make it into 5.4.1 release
> +SRC_URI += "\
> +    file://0014-fix-build-of-egl-integration.patch \
> +"
> +
>  SRC_URI[md5sum] = "9507825e558c980fed602de1f16ec7ae"
>  SRC_URI[sha256sum] = "8574a593830959c0f7e5430fe77a43832ea7f5299e14a397a74576b3df7fb1b7"
> --
> 1.9.1
>
>
Have gles2 in my packageconfig without problems. What error is fixed?

Upstream-Status?

Andreas


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

* Re: [meta-qt5][PATCH] fix build of qtbase with "gles2" package config
  2015-02-26 13:11 [meta-qt5][PATCH] fix build of qtbase with "gles2" package config Stephan Binner
  2015-02-26 20:25 ` Andreas Müller
@ 2015-02-27  0:01 ` Jonathan Liu
  1 sibling, 0 replies; 4+ messages in thread
From: Jonathan Liu @ 2015-02-27  0:01 UTC (permalink / raw)
  To: Stephan Binner; +Cc: OpenEmbedded Devel List

Hi Stephan,

On 27 February 2015 at 00:11, Stephan Binner
<stephan.binner@basyskom.com> wrote:
>
> ---
>  .../qtbase/0014-fix-build-of-egl-integration.patch | 181 +++++++++++++++++++++
>  recipes-qt/qt5/qtbase_5.4.1.bb                     |   5 +
>  2 files changed, 186 insertions(+)
>  create mode 100644 recipes-qt/qt5/qtbase/0014-fix-build-of-egl-integration.patch

Missing Signed-off-by line.

Regards,
Jonathan


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

* Re: [meta-qt5][PATCH] fix build of qtbase with "gles2" package config
  2015-02-26 20:25 ` Andreas Müller
@ 2015-02-27  7:59   ` Stephan Binner
  0 siblings, 0 replies; 4+ messages in thread
From: Stephan Binner @ 2015-02-27  7:59 UTC (permalink / raw)
  To: openembedded-devel

On Thursday 26 February 2015 21:25:52 Andreas Müller wrote:

> Have gles2 in my packageconfig without problems. 

I encountered this when building for "beaglebone" / with meta-ti, with other 
targets/machines and X files it may be actually fine. :-)

> What error is fixed?

#error qtextstream.h must be included before any header file that defines Status

and other compilation breakage caused by X defines (None, Status, ...).

> Upstream-Status?

As commented/obvious from the patch my patch was merged upstream

 > +    Change-Id: Iaf95ae2488df3d3301436262ed79f7091b4be0a9
 > +    Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>

 > # This patch is in 5.4 branch but didn't make it into 5.4.1 release

with https://codereview.qt-project.org/#/c/105116/
 
Regards,
Stephan



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

end of thread, other threads:[~2015-02-27  7:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-26 13:11 [meta-qt5][PATCH] fix build of qtbase with "gles2" package config Stephan Binner
2015-02-26 20:25 ` Andreas Müller
2015-02-27  7:59   ` Stephan Binner
2015-02-27  0:01 ` Jonathan Liu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.