diff --git a/recipes-qt/qt6/qtlottie/0001-CMake-find-QuickControls2.patch b/recipes-qt/qt6/qtlottie/0001-CMake-find-QuickControls2.patch new file mode 100644 index 0000000..84600c7 --- /dev/null +++ b/recipes-qt/qt6/qtlottie/0001-CMake-find-QuickControls2.patch @@ -0,0 +1,28 @@ +From 97e1ec9fcad94d88613d78d2a9394a644de4bf91 Mon Sep 17 00:00:00 2001 +From: Samuli Piippo +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.") diff --git a/recipes-qt/qt6/qtlottie_git.bb b/recipes-qt/qt6/qtlottie_git.bb index da459ee..95cdbf7 100644 --- a/recipes-qt/qt6/qtlottie_git.bb +++ b/recipes-qt/qt6/qtlottie_git.bb @@ -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 \