diff options
| author | Stephan Binner <stephan.binner@basyskom.com> | 2015-02-26 14:11:14 +0100 |
|---|---|---|
| committer | Martin Jansa <Martin.Jansa@gmail.com> | 2015-02-27 17:50:32 +0100 |
| commit | b47a9525ca84800e1035f1e2d237573ed048b202 (patch) | |
| tree | 4e9b7aacefcd9abee2ae67b422273c03739acc8e | |
| parent | e87cd44fba14319cedd6195a227f468671f568cd (diff) | |
| download | meta-qt5-b47a9525ca84800e1035f1e2d237573ed048b202.tar.gz | |
fix build of qtbase with "gles2" package config
Signed-off-by: Stephan Binner <stephan.binner@basyskom.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
| -rw-r--r-- | recipes-qt/qt5/qtbase/0014-fix-build-of-egl-integration.patch | 181 | ||||
| -rw-r--r-- | recipes-qt/qt5/qtbase_5.4.1.bb | 5 |
2 files changed, 186 insertions, 0 deletions
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 00000000..f21e8207 --- /dev/null +++ b/recipes-qt/qt5/qtbase/0014-fix-build-of-egl-integration.patch | |||
| @@ -0,0 +1,181 @@ | |||
| 1 | commit f8c8c79029867a087c9a753269d82b808c16f047 | ||
| 2 | Author: Stephan Binner <stephan.binner@basyskom.com> | ||
| 3 | Date: Mon Feb 2 13:10:50 2015 +0100 | ||
| 4 | |||
| 5 | Fix build of egl integration | ||
| 6 | |||
| 7 | Add missing includes and reorder includes to avoid X defines breakage | ||
| 8 | |||
| 9 | Change-Id: Iaf95ae2488df3d3301436262ed79f7091b4be0a9 | ||
| 10 | Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com> | ||
| 11 | |||
| 12 | diff --git a/src/platformsupport/eglconvenience/qeglplatformcontext_p.h b/src/platformsupport/eglconvenience/qeglplatformcontext_p.h | ||
| 13 | index 7825c7b..0c10710 100644 | ||
| 14 | --- a/src/platformsupport/eglconvenience/qeglplatformcontext_p.h | ||
| 15 | +++ b/src/platformsupport/eglconvenience/qeglplatformcontext_p.h | ||
| 16 | @@ -45,6 +45,7 @@ | ||
| 17 | // We mean it. | ||
| 18 | // | ||
| 19 | |||
| 20 | +#include <QtCore/qtextstream.h> | ||
| 21 | #include <qpa/qplatformwindow.h> | ||
| 22 | #include <qpa/qplatformopenglcontext.h> | ||
| 23 | #include <QtCore/QVariant> | ||
| 24 | diff --git a/src/platformsupport/eglconvenience/qeglplatformintegration_p.h b/src/platformsupport/eglconvenience/qeglplatformintegration_p.h | ||
| 25 | index 4d7adce..2b5d5f5 100644 | ||
| 26 | --- a/src/platformsupport/eglconvenience/qeglplatformintegration_p.h | ||
| 27 | +++ b/src/platformsupport/eglconvenience/qeglplatformintegration_p.h | ||
| 28 | @@ -45,9 +45,9 @@ | ||
| 29 | // We mean it. | ||
| 30 | // | ||
| 31 | |||
| 32 | +#include <QtCore/QVariant> | ||
| 33 | #include <qpa/qplatformintegration.h> | ||
| 34 | #include <qpa/qplatformnativeinterface.h> | ||
| 35 | -#include <QtCore/QVariant> | ||
| 36 | #include <EGL/egl.h> | ||
| 37 | |||
| 38 | QT_BEGIN_NAMESPACE | ||
| 39 | diff --git a/src/plugins/platforms/eglfs/qeglfscontext.cpp b/src/plugins/platforms/eglfs/qeglfscontext.cpp | ||
| 40 | index 6216fa8..6470280 100644 | ||
| 41 | --- a/src/plugins/platforms/eglfs/qeglfscontext.cpp | ||
| 42 | +++ b/src/plugins/platforms/eglfs/qeglfscontext.cpp | ||
| 43 | @@ -31,15 +31,16 @@ | ||
| 44 | ** | ||
| 45 | ****************************************************************************/ | ||
| 46 | |||
| 47 | -#include "qeglfscontext.h" | ||
| 48 | -#include "qeglfswindow.h" | ||
| 49 | -#include "qeglfshooks.h" | ||
| 50 | +#include <QtGui/QSurface> | ||
| 51 | +#include <QtDebug> | ||
| 52 | |||
| 53 | +#include <QtPlatformSupport/private/qeglplatformcursor_p.h> | ||
| 54 | #include <QtPlatformSupport/private/qeglconvenience_p.h> | ||
| 55 | #include <QtPlatformSupport/private/qeglpbuffer_p.h> | ||
| 56 | -#include <QtPlatformSupport/private/qeglplatformcursor_p.h> | ||
| 57 | -#include <QtGui/QSurface> | ||
| 58 | -#include <QtDebug> | ||
| 59 | + | ||
| 60 | +#include "qeglfswindow.h" | ||
| 61 | +#include "qeglfshooks.h" | ||
| 62 | +#include "qeglfscontext.h" | ||
| 63 | |||
| 64 | QT_BEGIN_NAMESPACE | ||
| 65 | |||
| 66 | diff --git a/src/plugins/platforms/eglfs/qeglfshooks_stub.cpp b/src/plugins/platforms/eglfs/qeglfshooks_stub.cpp | ||
| 67 | index 26d77a2..120c603 100644 | ||
| 68 | --- a/src/plugins/platforms/eglfs/qeglfshooks_stub.cpp | ||
| 69 | +++ b/src/plugins/platforms/eglfs/qeglfshooks_stub.cpp | ||
| 70 | @@ -31,10 +31,10 @@ | ||
| 71 | ** | ||
| 72 | ****************************************************************************/ | ||
| 73 | |||
| 74 | -#include "qeglfshooks.h" | ||
| 75 | #include <QtPlatformSupport/private/qeglplatformcursor_p.h> | ||
| 76 | #include <QtPlatformSupport/private/qeglconvenience_p.h> | ||
| 77 | #include <QtCore/QRegularExpression> | ||
| 78 | +#include "qeglfshooks.h" | ||
| 79 | |||
| 80 | #if defined(Q_OS_LINUX) | ||
| 81 | #include <fcntl.h> | ||
| 82 | diff --git a/src/plugins/platforms/eglfs/qeglfsintegration.cpp b/src/plugins/platforms/eglfs/qeglfsintegration.cpp | ||
| 83 | index 2a4eae3..fbdd1d4 100644 | ||
| 84 | --- a/src/plugins/platforms/eglfs/qeglfsintegration.cpp | ||
| 85 | +++ b/src/plugins/platforms/eglfs/qeglfsintegration.cpp | ||
| 86 | @@ -31,26 +31,26 @@ | ||
| 87 | ** | ||
| 88 | ****************************************************************************/ | ||
| 89 | |||
| 90 | -#include "qeglfsintegration.h" | ||
| 91 | +#include <QtCore/qtextstream.h> | ||
| 92 | +#include <QtGui/private/qguiapplication_p.h> | ||
| 93 | + | ||
| 94 | +#include <qpa/qplatformwindow.h> | ||
| 95 | +#include <QtGui/QSurfaceFormat> | ||
| 96 | +#include <QtGui/QOpenGLContext> | ||
| 97 | +#include <QtGui/QScreen> | ||
| 98 | +#include <QtGui/QOffscreenSurface> | ||
| 99 | +#include <qpa/qplatformcursor.h> | ||
| 100 | |||
| 101 | +#include "qeglfsintegration.h" | ||
| 102 | #include "qeglfswindow.h" | ||
| 103 | #include "qeglfshooks.h" | ||
| 104 | #include "qeglfscontext.h" | ||
| 105 | |||
| 106 | -#include <QtGui/private/qguiapplication_p.h> | ||
| 107 | - | ||
| 108 | #include <QtPlatformSupport/private/qeglconvenience_p.h> | ||
| 109 | #include <QtPlatformSupport/private/qeglplatformcontext_p.h> | ||
| 110 | #include <QtPlatformSupport/private/qeglpbuffer_p.h> | ||
| 111 | #include <QtPlatformHeaders/QEGLNativeContext> | ||
| 112 | |||
| 113 | -#include <qpa/qplatformwindow.h> | ||
| 114 | -#include <QtGui/QSurfaceFormat> | ||
| 115 | -#include <QtGui/QOpenGLContext> | ||
| 116 | -#include <QtGui/QScreen> | ||
| 117 | -#include <QtGui/QOffscreenSurface> | ||
| 118 | -#include <qpa/qplatformcursor.h> | ||
| 119 | - | ||
| 120 | #include <EGL/egl.h> | ||
| 121 | |||
| 122 | static void initResources() | ||
| 123 | diff --git a/src/plugins/platforms/eglfs/qeglfsscreen.cpp b/src/plugins/platforms/eglfs/qeglfsscreen.cpp | ||
| 124 | index cd68540..bc93fe2 100644 | ||
| 125 | --- a/src/plugins/platforms/eglfs/qeglfsscreen.cpp | ||
| 126 | +++ b/src/plugins/platforms/eglfs/qeglfsscreen.cpp | ||
| 127 | @@ -31,10 +31,12 @@ | ||
| 128 | ** | ||
| 129 | ****************************************************************************/ | ||
| 130 | |||
| 131 | +#include <QtCore/qtextstream.h> | ||
| 132 | +#include <QtPlatformSupport/private/qeglplatformcursor_p.h> | ||
| 133 | + | ||
| 134 | #include "qeglfsscreen.h" | ||
| 135 | #include "qeglfswindow.h" | ||
| 136 | #include "qeglfshooks.h" | ||
| 137 | -#include <QtPlatformSupport/private/qeglplatformcursor_p.h> | ||
| 138 | |||
| 139 | QT_BEGIN_NAMESPACE | ||
| 140 | |||
| 141 | diff --git a/src/plugins/platforms/eglfs/qeglfswindow.cpp b/src/plugins/platforms/eglfs/qeglfswindow.cpp | ||
| 142 | index f5839e0..39a3ef9 100644 | ||
| 143 | --- a/src/plugins/platforms/eglfs/qeglfswindow.cpp | ||
| 144 | +++ b/src/plugins/platforms/eglfs/qeglfswindow.cpp | ||
| 145 | @@ -31,8 +31,7 @@ | ||
| 146 | ** | ||
| 147 | ****************************************************************************/ | ||
| 148 | |||
| 149 | -#include "qeglfswindow.h" | ||
| 150 | -#include "qeglfshooks.h" | ||
| 151 | +#include <QtCore/qtextstream.h> | ||
| 152 | #include <qpa/qwindowsysteminterface.h> | ||
| 153 | #include <qpa/qplatformintegration.h> | ||
| 154 | #include <private/qguiapplication_p.h> | ||
| 155 | @@ -40,6 +39,9 @@ | ||
| 156 | #include <QtPlatformSupport/private/qeglplatformcursor_p.h> | ||
| 157 | #include <QtPlatformSupport/private/qeglconvenience_p.h> | ||
| 158 | |||
| 159 | +#include "qeglfswindow.h" | ||
| 160 | +#include "qeglfshooks.h" | ||
| 161 | + | ||
| 162 | #include <QtDebug> | ||
| 163 | |||
| 164 | QT_BEGIN_NAMESPACE | ||
| 165 | diff --git a/src/plugins/platforms/minimalegl/qminimaleglwindow.cpp b/src/plugins/platforms/minimalegl/qminimaleglwindow.cpp | ||
| 166 | index 906a130..d4bee2c 100644 | ||
| 167 | --- a/src/plugins/platforms/minimalegl/qminimaleglwindow.cpp | ||
| 168 | +++ b/src/plugins/platforms/minimalegl/qminimaleglwindow.cpp | ||
| 169 | @@ -31,10 +31,10 @@ | ||
| 170 | ** | ||
| 171 | ****************************************************************************/ | ||
| 172 | |||
| 173 | -#include "qminimaleglwindow.h" | ||
| 174 | - | ||
| 175 | #include <qpa/qwindowsysteminterface.h> | ||
| 176 | |||
| 177 | +#include "qminimaleglwindow.h" | ||
| 178 | + | ||
| 179 | QT_BEGIN_NAMESPACE | ||
| 180 | |||
| 181 | 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 6215e828..d4232191 100644 --- a/recipes-qt/qt5/qtbase_5.4.1.bb +++ b/recipes-qt/qt5/qtbase_5.4.1.bb | |||
| @@ -1,5 +1,10 @@ | |||
| 1 | require qt5-${PV}.inc | 1 | require qt5-${PV}.inc |
| 2 | require ${PN}.inc | 2 | require ${PN}.inc |
| 3 | 3 | ||
| 4 | # This patch is in 5.4 branch but didn't make it into 5.4.1 release | ||
| 5 | SRC_URI += "\ | ||
| 6 | file://0014-fix-build-of-egl-integration.patch \ | ||
| 7 | " | ||
| 8 | |||
| 4 | SRC_URI[md5sum] = "9507825e558c980fed602de1f16ec7ae" | 9 | SRC_URI[md5sum] = "9507825e558c980fed602de1f16ec7ae" |
| 5 | SRC_URI[sha256sum] = "8574a593830959c0f7e5430fe77a43832ea7f5299e14a397a74576b3df7fb1b7" | 10 | SRC_URI[sha256sum] = "8574a593830959c0f7e5430fe77a43832ea7f5299e14a397a74576b3df7fb1b7" |
