From e623c365ff553df5b2b172d85b548f28f1c2f9a1 Mon Sep 17 00:00:00 2001 From: Javier Viguera Date: Wed, 9 Aug 2017 18:31:12 +0200 Subject: [PATCH] qt: add support for Qt Quick 2D Renderer in the CC6UL This is an alternative software based renderer for QtQuick2 applications for hardware that doesn't have a GPU. This is the case of the CC6UL. It does not have a GPU, so the only way to run QML applications is using this software renderer. https://jira.digi.com/browse/DEL-3912 Signed-off-by: Javier Viguera --- .../recipes-graphics/packagegroups/packagegroup-dey-qt.bb | 1 + meta-digi-dey/recipes-qt/qt5/qtbase/ccimx6ul/qt5.sh | 3 +++ 2 files changed, 4 insertions(+) diff --git a/meta-digi-dey/recipes-graphics/packagegroups/packagegroup-dey-qt.bb b/meta-digi-dey/recipes-graphics/packagegroups/packagegroup-dey-qt.bb index 2e975d56c..fc792f1ad 100644 --- a/meta-digi-dey/recipes-graphics/packagegroups/packagegroup-dey-qt.bb +++ b/meta-digi-dey/recipes-graphics/packagegroups/packagegroup-dey-qt.bb @@ -11,6 +11,7 @@ MACHINE_QT5_EXTRA_INSTALL_ccimx6 ?= "qtwebengine-examples" QT5_PKS = "qtserialport" QT5_PKS_append_ccimx6 = " qtdeclarative-tools" +QT5_PKS_append_ccimx6ul = " qtdeclarative-render2d-plugins" QT5_EXAMPLES = "qtbase-examples" QT5_EXAMPLES_append_ccimx6 = " \ diff --git a/meta-digi-dey/recipes-qt/qt5/qtbase/ccimx6ul/qt5.sh b/meta-digi-dey/recipes-qt/qt5/qtbase/ccimx6ul/qt5.sh index e64709644..68dcf6f85 100644 --- a/meta-digi-dey/recipes-qt/qt5/qtbase/ccimx6ul/qt5.sh +++ b/meta-digi-dey/recipes-qt/qt5/qtbase/ccimx6ul/qt5.sh @@ -1,2 +1,5 @@ # Use LINUXFB platform plugin for images without X11 [ -f "/etc/init.d/xserver-nodm" ] || export QT_QPA_PLATFORM="linuxfb" + +# Use Qt Quick 2D Renderer +export QMLSCENE_DEVICE="softwarecontext"