Commit 061f008e authored by aware70's avatar aware70
Browse files

actiona: fix build for Qt 6.10

parent 30b1f35f
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
diff --git a/actiontools/CMakeLists.txt b/actiontools/CMakeLists.txt
index 94c809c4..eb3d7e8c 100644
--- a/actiontools/CMakeLists.txt
+++ b/actiontools/CMakeLists.txt
@@ -292,7 +292,7 @@ target_compile_definitions(${PROJECT} PRIVATE ACTIONTOOLS_LIBRARY)
 setup_target(${PROJECT})
 
 find_package(OpenCV REQUIRED core imgproc)
-find_package(Qt6 ${ACT_MINIMUM_QT_VERSION} COMPONENTS Widgets Qml REQUIRED)
+find_package(Qt6 ${ACT_MINIMUM_QT_VERSION} COMPONENTS Widgets Qml QmlPrivate REQUIRED)
 
 ExternalProject_Add(external_qtjsapi
     SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/qtjsapi
+5 −1
Original line number Diff line number Diff line
@@ -28,7 +28,11 @@ stdenv.mkDerivation (finalAttrs: {
    fetchSubmodules = true;
  };

  patches = lib.optionals (!textToSpeechSupport) [
  patches = [
    # Meet Qt 6.10 requirement for explicit find_package of private targets
    ./fix-qt6-10-private-targets.diff
  ]
  ++ lib.optionals (!textToSpeechSupport) [
    # Removes TTS support
    ./disable-tts.patch
  ];