From 3f72735e8585966c8eda2c97095443484c4ef06e Mon Sep 17 00:00:00 2001 From: Mike Ratcliffe Date: Fri, 23 Aug 2024 14:58:04 +0100 Subject: [PATCH] fix: Fix building on Linux (QGuiApplication issue) --- CMakeLists.txt | 3 ++- src/vrp_manager.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6d8c38c..7544950 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -41,7 +41,7 @@ if(APPLE AND MACOS_BUNDLE) endif() find_package(Qt6 REQUIRED COMPONENTS Core Gui Quick Network Xml QuickControls2) -find_package(Qt6 REQUIRED COMPONENTS Qml QmlWorkerScript) +find_package(Qt6 REQUIRED COMPONENTS Qml QmlWorkerScript Widgets) find_package(QCoro6 REQUIRED COMPONENTS Core Qml Network) find_package(KF6Kirigami) @@ -78,6 +78,7 @@ target_link_libraries(${APP_BINARY_NAME} PRIVATE Qt6::DBus Qt6::QuickControls2 Qt6::QmlWorkerScript + Qt6::Widgets QCoro6::Core QCoro6::Qml QCoro6::Network diff --git a/src/vrp_manager.cpp b/src/vrp_manager.cpp index 2462951..2f25309 100644 --- a/src/vrp_manager.cpp +++ b/src/vrp_manager.cpp @@ -17,9 +17,9 @@ #include "vrp_manager.h" +#include #include #include -#include #include #include #include