Details
-
Bug
-
Resolution: Duplicate
-
P2: Important
-
None
-
6.8.1
-
None
-
Microsoft Windows 11 Pro
-
-
baddc0a19 (dev), 858bb5df1 (6.9), b5e21105b (6.8)
Description
When trying to build OpcUa module for Qt 6.8.1 I get following error:
CMake Warning at C:/Dev/Qt/6.8.1/msvc2022_64/lib/cmake/Qt6/Qt6ConfigVersion.cmake:56 (message): Version 6.9.0 of package Qt6 was requested but an incompatible version was found: 6.8.1. You can pass -DQT_NO_PACKAGE_VERSION_CHECK=TRUE to disable the version check and force the incompatible version to be used. There is no guarantee the build will succeed. Use at your own risk. You can silence this warning by passing -DQT_NO_PACKAGE_VERSION_INCOMPATIBLE_WARNING=TRUE Call Stack (most recent call first): CMakeLists.txt:14 (find_package) CMake Error at CMakeLists.txt:14 (find_package): Could not find a configuration file for package "Qt6" that is compatible with requested version "6.9.0". The following configuration files were considered but not accepted: C:/Dev/Qt/6.8.1/msvc2022_64/lib/cmake/Qt6/Qt6Config.cmake, version: 6.8.1
If -DQT_NO_PACKAGE_VERSION_CHECK=TRUE is passed to cmake following error occurs
-- Setting build type to 'Release' as none was specified.
CMake Error at C:/Dev/Qt/6.8.1/msvc2022_64/lib/cmake/Qt6/QtPublicCMakeHelpers.cmake:533 (message):
Unknown arguments: (SYSTEM_LIBRARY)
Call Stack (most recent call first):
C:/Dev/Qt/6.8.1/msvc2022_64/lib/cmake/Qt6/QtFeature.cmake:54 (_qt_internal_validate_all_args_are_parsed)
src/opcua/configure.cmake:38 (qt_feature)
C:/Dev/Qt/6.8.1/msvc2022_64/lib/cmake/Qt6/QtModuleHelpers.cmake:676 (include)
src/opcua/CMakeLists.txt:8 (qt_internal_add_module)
After editing
.cmake.conf
from
set(QT_REPO_MODULE_VERSION "6.9.0")
to
set(QT_REPO_MODULE_VERSION "6.8.0")
to correct the, I pressume, typo, I get following output
-- Setting build type to 'Release' as none was specified.
CMake Error at C:/Dev/Qt/6.8.1/msvc2022_64/lib/cmake/Qt6/QtPublicCMakeHelpers.cmake:533 (message):
Unknown arguments: (SYSTEM_LIBRARY)
Call Stack (most recent call first):
C:/Dev/Qt/6.8.1/msvc2022_64/lib/cmake/Qt6/QtFeature.cmake:54 (_qt_internal_validate_all_args_are_parsed)
src/opcua/configure.cmake:38 (qt_feature)
C:/Dev/Qt/6.8.1/msvc2022_64/lib/cmake/Qt6/QtModuleHelpers.cmake:676 (include)
src/opcua/CMakeLists.txt:8 (qt_internal_add_module)
Attachments
Issue Links
- relates to
-
QTBUG-132609 Configuring a single-config qtopcua might fail to build tools when built against a multi-config Qt
- Closed
For Gerrit Dashboard: QTBUG-132338 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
615397,3 | CMake: Build executables in single-config debug-and-release builds | dev | qt/qtbase | Status: MERGED | +2 | 0 |
618848,2 | CMake: Build executables in single-config debug-and-release builds | 6.9 | qt/qtbase | Status: MERGED | +2 | 0 |
618954,2 | CMake: Build executables in single-config debug-and-release builds | 6.8 | qt/qtbase | Status: MERGED | +2 | 0 |