qtlottie: fix example build

Add temporary fix for building examples.

Pick-to: 6.10
Change-Id: Ib205f2793894322e957f806531086b6730a63569
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
This commit is contained in:
Samuli Piippo 2025-06-27 07:40:58 +00:00
parent b5de66d6c3
commit a4a8751d3b
2 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,28 @@
From 97e1ec9fcad94d88613d78d2a9394a644de4bf91 Mon Sep 17 00:00:00 2001
From: Samuli Piippo <samuli.piippo@qt.io>
Date: Fri, 27 Jun 2025 06:49:13 +0300
Subject: [PATCH] CMake: find QuickControls2
Needed for qtlottieviewer example.
Pick-to: 6.10
Change-Id: I94dee8823ad53cdc2e323cfdd2a554d03f9c6d7a
Upstream-Status: Submitted
---
CMakeLists.txt | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a99147f..d941c66 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -18,7 +18,8 @@ find_package(Qt6 ${PROJECT_VERSION} CONFIG REQUIRED COMPONENTS BuildInternals)
qt_internal_project_setup()
find_package(Qt6 ${PROJECT_VERSION} CONFIG REQUIRED COMPONENTS Core)
-find_package(Qt6 ${PROJECT_VERSION} QUIET CONFIG OPTIONAL_COMPONENTS Gui Qml Quick QuickTest)
+find_package(Qt6 ${PROJECT_VERSION} QUIET CONFIG OPTIONAL_COMPONENTS Gui Qml Quick QuickTest
+QuickControls2)
if(NOT TARGET Qt6::Gui)
message(NOTICE "Skipping the build as Qt6::Gui cannot be found.")

View File

@ -10,6 +10,8 @@ inherit qt6-cmake
include recipes-qt/qt6/qt6-git.inc
include recipes-qt/qt6/qt6.inc
SRC_URI += "file://0001-CMake-find-QuickControls2.patch"
DEPENDS += "\
qtbase \
qtdeclarative \