Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-132338

QtOpcUa Required QtVersion Wrong

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2: Important P2: Important
    • None
    • 6.8.1
    • OpcUA
    • None
    • Microsoft Windows 11 Pro
    • Windows
    • baddc0a19 (dev), 858bb5df1 (6.9), b5e21105b (6.8)

      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) 

        For Gerrit Dashboard: QTBUG-132338
        # Subject Branch Project Status CR V

            basyskom.jannis.voelker Jannis Völker
            redman Calvin Flatt
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes