diff options
| author | Samuli Piippo <samuli.piippo@qt.io> | 2019-08-02 12:45:34 +0300 |
|---|---|---|
| committer | Samuli Piippo <samuli.piippo@qt.io> | 2019-08-05 07:12:10 +0000 |
| commit | e0cee22dcdbf141a103175c62dae8bc0b965558e (patch) | |
| tree | 559ed565ef83ed361dd4bf0254b50d4c90b26356 | |
| parent | 9978929f1f0cc33cc57e9e9529c1cc108c80107f (diff) | |
| download | meta-qt5-e0cee22dcdbf141a103175c62dae8bc0b965558e.tar.gz | |
ogl-runtime: fix build errors
Add qtquickcontrols2 dependency for the viewer and
a workaround patch for failed examples (QTBUG-77288)
Change-Id: If7481ee63cb6633bfd38f92267f87cc3ff158607
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
| -rw-r--r-- | recipes-qt/qt5/ogl-runtime/0001-Fix-examples-build-error.patch | 62 | ||||
| -rw-r--r-- | recipes-qt/qt5/ogl-runtime_git.bb | 3 |
2 files changed, 64 insertions, 1 deletions
diff --git a/recipes-qt/qt5/ogl-runtime/0001-Fix-examples-build-error.patch b/recipes-qt/qt5/ogl-runtime/0001-Fix-examples-build-error.patch new file mode 100644 index 00000000..0d2f165f --- /dev/null +++ b/recipes-qt/qt5/ogl-runtime/0001-Fix-examples-build-error.patch | |||
| @@ -0,0 +1,62 @@ | |||
| 1 | From 4fa69c1c5396bded20edccb2a1dd9b61f0b1140d Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Samuli Piippo <samuli.piippo@qt.io> | ||
| 3 | Date: Fri, 2 Aug 2019 12:39:50 +0300 | ||
| 4 | Subject: [PATCH] Fix examples build error | ||
| 5 | |||
| 6 | Add workaround for QTBUG-77288 which causes examples to fail to build | ||
| 7 | |||
| 8 | Signed-off-by: Samuli Piippo <samuli.piippo@qt.io> | ||
| 9 | --- | ||
| 10 | examples/studio3d/cppdatainput/cppdatainput.pro | 1 + | ||
| 11 | examples/studio3d/dynamicelement/dynamicelement.pro | 1 + | ||
| 12 | examples/studio3d/qmldatainput/qmldatainput.pro | 1 + | ||
| 13 | examples/studio3d/simpleqml/simpleqml.pro | 1 + | ||
| 14 | 4 files changed, 4 insertions(+) | ||
| 15 | |||
| 16 | diff --git a/examples/studio3d/cppdatainput/cppdatainput.pro b/examples/studio3d/cppdatainput/cppdatainput.pro | ||
| 17 | index 20b5c68..bbb403a 100644 | ||
| 18 | --- a/examples/studio3d/cppdatainput/cppdatainput.pro | ||
| 19 | +++ b/examples/studio3d/cppdatainput/cppdatainput.pro | ||
| 20 | @@ -1,5 +1,6 @@ | ||
| 21 | CONFIG += c++11 | ||
| 22 | QT += widgets qml quick studio3d | ||
| 23 | +QMAKE_LIBS += $$QMAKE_LIBS_3DSQMLSTREAMER $$QMAKE_LIBS_3DSOPENGL | ||
| 24 | |||
| 25 | target.path = $$[QT_INSTALL_EXAMPLES]/studio3d/$$TARGET | ||
| 26 | INSTALLS += target | ||
| 27 | diff --git a/examples/studio3d/dynamicelement/dynamicelement.pro b/examples/studio3d/dynamicelement/dynamicelement.pro | ||
| 28 | index 1b804fd..ae3c005 100644 | ||
| 29 | --- a/examples/studio3d/dynamicelement/dynamicelement.pro | ||
| 30 | +++ b/examples/studio3d/dynamicelement/dynamicelement.pro | ||
| 31 | @@ -1,6 +1,7 @@ | ||
| 32 | TEMPLATE = app | ||
| 33 | |||
| 34 | QT += qml quick studio3d | ||
| 35 | +QMAKE_LIBS += $$QMAKE_LIBS_3DSQMLSTREAMER $$QMAKE_LIBS_3DSOPENGL | ||
| 36 | |||
| 37 | SOURCES += \ | ||
| 38 | demo.cpp \ | ||
| 39 | diff --git a/examples/studio3d/qmldatainput/qmldatainput.pro b/examples/studio3d/qmldatainput/qmldatainput.pro | ||
| 40 | index 9bafed5..496c2c1 100644 | ||
| 41 | --- a/examples/studio3d/qmldatainput/qmldatainput.pro | ||
| 42 | +++ b/examples/studio3d/qmldatainput/qmldatainput.pro | ||
| 43 | @@ -1,6 +1,7 @@ | ||
| 44 | TEMPLATE = app | ||
| 45 | |||
| 46 | QT += widgets qml quick studio3d | ||
| 47 | +QMAKE_LIBS += $$QMAKE_LIBS_3DSQMLSTREAMER $$QMAKE_LIBS_3DSOPENGL | ||
| 48 | |||
| 49 | integrity: DEFINES += USE_EMBEDDED_FONTS | ||
| 50 | |||
| 51 | diff --git a/examples/studio3d/simpleqml/simpleqml.pro b/examples/studio3d/simpleqml/simpleqml.pro | ||
| 52 | index 62afa78..1a0784b 100644 | ||
| 53 | --- a/examples/studio3d/simpleqml/simpleqml.pro | ||
| 54 | +++ b/examples/studio3d/simpleqml/simpleqml.pro | ||
| 55 | @@ -1,6 +1,7 @@ | ||
| 56 | TEMPLATE = app | ||
| 57 | |||
| 58 | QT += widgets qml quick studio3d | ||
| 59 | +QMAKE_LIBS += $$QMAKE_LIBS_3DSQMLSTREAMER $$QMAKE_LIBS_3DSOPENGL | ||
| 60 | |||
| 61 | SOURCES += \ | ||
| 62 | main.cpp | ||
diff --git a/recipes-qt/qt5/ogl-runtime_git.bb b/recipes-qt/qt5/ogl-runtime_git.bb index c2009418..7d31b2a8 100644 --- a/recipes-qt/qt5/ogl-runtime_git.bb +++ b/recipes-qt/qt5/ogl-runtime_git.bb | |||
| @@ -7,7 +7,7 @@ LIC_FILES_CHKSUM = " \ | |||
| 7 | file://LICENSE.GPL3-EXCEPT;md5=763d8c535a234d9a3fb682c7ecb6c073 \ | 7 | file://LICENSE.GPL3-EXCEPT;md5=763d8c535a234d9a3fb682c7ecb6c073 \ |
| 8 | " | 8 | " |
| 9 | 9 | ||
| 10 | DEPENDS += "qtbase qtdeclarative" | 10 | DEPENDS += "qtbase qtdeclarative qtquickcontrols2" |
| 11 | 11 | ||
| 12 | QT_MODULE_BRANCH = "2.4" | 12 | QT_MODULE_BRANCH = "2.4" |
| 13 | QT_MODULE_BRANCH_EASTL = "master" | 13 | QT_MODULE_BRANCH_EASTL = "master" |
| @@ -16,6 +16,7 @@ PV = "2.4+git${SRCPV}" | |||
| 16 | 16 | ||
| 17 | SRC_URI += " \ | 17 | SRC_URI += " \ |
| 18 | ${QT_GIT}/qt3dstudio-eastl.git;name=EASTL;branch=${QT_MODULE_BRANCH_EASTL};protocol=${QT_GIT_PROTOCOL};destsuffix=git/src/3rdparty/EASTL \ | 18 | ${QT_GIT}/qt3dstudio-eastl.git;name=EASTL;branch=${QT_MODULE_BRANCH_EASTL};protocol=${QT_GIT_PROTOCOL};destsuffix=git/src/3rdparty/EASTL \ |
| 19 | file://0001-Fix-examples-build-error.patch \ | ||
| 19 | " | 20 | " |
| 20 | 21 | ||
| 21 | SRCREV_ogl-runtime = "a41270dced230d90e0e07f2ebb880e4f97317a7f" | 22 | SRCREV_ogl-runtime = "a41270dced230d90e0e07f2ebb880e4f97317a7f" |
