Page MenuHome GnuPG

(An Untitled Masterwork)
ActivePublic

Authored by aheinecke on Mar 12 2024, 8:12 PM.
-- Could NOT find Qt6Qml (missing: Qt6Qml_DIR)
CMake Warning at /home/aheinecke/dev/qt6/src/gpg4win/src/playground/install/share/ECM/modules/ECMQmlModule6.cmake:9 (find_package):
Found package configuration file:
/home/aheinecke/dev/qt6/src/gpg4win/src/playground/install/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 "Qml".
Expected Config file at
"/home/aheinecke/dev/qt6/src/gpg4win/src/playground/install/lib/cmake/Qt6Qml/Qt6QmlConfig.cmake"
does NOT exist
Configuring with --debug-find-pkg=Qt6Qml 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):
/home/aheinecke/dev/qt6/src/gpg4win/src/playground/install/share/ECM/modules/ECMQmlModule.cmake:177 (include)
CMakeLists.txt:27 (include)
CMake Warning at /home/aheinecke/dev/qt6/src/gpg4win/src/playground/install/share/ECM/modules/ECMQmlModule6.cmake:13 (message):
Target Qt6::Qml was not found. ECMQmlModule requires the QML module when
building with Qt 6
Call Stack (most recent call first):
/home/aheinecke/dev/qt6/src/gpg4win/src/playground/install/share/ECM/modules/ECMQmlModule.cmake:177 (include)
CMakeLists.txt:27 (include)
CMake Error at /home/aheinecke/dev/qt6/src/gpg4win/src/playground/install/share/ECM/modules/ECMQmlModule.cmake:179 (message):
Failed setting up ECMQmlModule
Call Stack (most recent call first):
CMakeLists.txt:27 (include)
so i patch it like:
From c00f41b1cca26efc7c0bb9de4fb91db32e008694 Mon Sep 17 00:00:00 2001
From: Andre Heinecke <aheinecke@gnupg.org>
Date: Tue, 12 Mar 2024 15:37:52 +0100
Subject: [PATCH] Only include ECMQmlModule if building WITH_QUICK
Otherwise it errors out because the ECM cannot find Qml.
---
CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index e06b17e..5ee52e1 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -23,7 +23,6 @@ include(ECMAddTests)
include(CMakePackageConfigHelpers)
include(ECMSetupVersion)
include(ECMQtDeclareLoggingCategory)
-include(ECMQmlModule)
include(ECMDeprecationSettings)
set(EXCLUDE_DEPRECATED_BEFORE_AND_AT 0 CACHE STRING "Control the range of deprecated API excluded from the build [default=0].")
@@ -39,6 +38,7 @@ option(WITH_MULTIMEDIA "Build scanner support" ON)
find_package(Qt6 ${REQUIRED_QT_VERSION} CONFIG REQUIRED Core Gui)
if (WITH_QUICK)
+ include(ECMQmlModule)
find_package(Qt6 ${REQUIRED_QT_VERSION} CONFIG REQUIRED Quick)
endif()
--
2.43.2