From 2204fdd39682cfc052556d58fdb9404dd8ecf63f Mon Sep 17 00:00:00 2001 From: Sefa Eyeoglu Date: Sun, 26 Oct 2025 19:20:50 +0100 Subject: [PATCH] Fix build against Qt 6.10 Since Qt 6.10, private APIs are now gated behind their own package components. To make the build work again, we need to add QmlPrivate as a required component, as QtCoro relies on it. See https://doc.qt.io/qt-6/whatsnew610.html#build-system-changes Closes https://github.com/WiVRn/WiVRn/issues/556 Signed-off-by: Sefa Eyeoglu --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9594a98d..57b41dc8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -157,6 +157,11 @@ endif() if (WIVRN_BUILD_DASHBOARD) find_package(Qt6 REQUIRED COMPONENTS Core Quick Test Gui QuickControls2 Widgets Network) + if(Qt6_VERSION VERSION_GREATER_EQUAL 6.10.0) + # QtCoro needs this for Qt 6.10 and (currently) doesn't do this by itself + find_package(Qt6 REQUIRED COMPONENTS QmlPrivate) + endif() + find_package(ECM 5.115 REQUIRED NO_MODULE) list(APPEND CMAKE_MODULE_PATH "${ECM_MODULE_PATH}")