From 4960ad55fa833472a6d0519f3619403e3b070f4f Mon Sep 17 00:00:00 2001 From: Marc Ferland Date: Sun, 15 Dec 2024 10:52:43 -0500 Subject: [PATCH] plasma-mobile: fix build failure Rebuilt from scratch and got the following build failure: | -- Could NOT find Qt6WaylandScannerTools (missing: Qt6WaylandScannerTools_DIR) | CMake Warning at /home/marc/dev/build/tmp/work/core2-64-poky-linux/plasma-mobile/6.2.4/recipe-sysroot/usr/lib/cmake/Qt6/Qt6Config.cmake:191 (find_package): | Found package configuration file: | | /home/marc/dev/build/tmp/work/core2-64-poky-linux/plasma-mobile/6.2.4/recipe-sysroot/usr/lib/cmake/Qt6WaylandClient/Qt6WaylandClientConfig.cmake | | but it set Qt6WaylandClient_FOUND to FALSE so package "Qt6WaylandClient" is | considered to be NOT FOUND. Reason given by package: | | Qt6WaylandClient could not be found because dependency | Qt6WaylandScannerTools could not be found. | | Configuring with --debug-find-pkg=Qt6WaylandScannerTools might reveal | details why the package was not found. | | Configuring with -DQT_DEBUG_FIND_PACKAGE=ON will print the values of some | of the path variables that find_package uses to try and find the package. | | Call Stack (most recent call first): | CMakeLists.txt:51 (find_package) | | | CMake Error at CMakeLists.txt:51 (find_package): | Found package configuration file: | | /home/marc/dev/build/tmp/work/core2-64-poky-linux/plasma-mobile/6.2.4/recipe-sysroot/usr/lib/cmake/Qt6/Qt6Config.cmake | | but it set Qt6_FOUND to FALSE so package "Qt6" is considered to be NOT | FOUND. Reason given by package: | | Failed to find required Qt component "WaylandClient". | | Expected Config file at | "/home/marc/dev/build/tmp/work/core2-64-poky-linux/plasma-mobile/6.2.4/recipe-sysroot/usr/lib/cmake/Qt6WaylandClient/Qt6WaylandClientConfig.cmake" | exists Adding qtwayland and qtwayland-native as build dependencies fixes the issue. Signed-off-by: Marc Ferland --- recipes-plasma/plasma-mobile.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/recipes-plasma/plasma-mobile.inc b/recipes-plasma/plasma-mobile.inc index 793c9b1..aed3571 100644 --- a/recipes-plasma/plasma-mobile.inc +++ b/recipes-plasma/plasma-mobile.inc @@ -31,6 +31,8 @@ DEPENDS += " \ networkmanager-qt \ plasma-workspace \ qcoro \ + qtwayland \ + qtwayland-native \ " inherit cmake_plasma