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

QtOpcUa installation is missing release.cmake

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P2: Important
    • None
    • 6.6.3
    • OpcUA
    • None
    • Edition Windows 11 Pro
      Version 23H2
      Installed on ‎23/‎08/‎2023
      OS build 22631.4037
      Experience Windows Feature Experience Pack 1000.22700.1027.0
    • Windows

    Description

      Prerequisites:
      Compiled and installed openSSL min. required version 1.1
      Environment variable OPENSSL_ROOT_DIR set to root dir of openssl

      QtOpcUa compiled and installed with cmake:
      cmake -G "Ninja" Qt6OpcUa_SOURCE_DIR
      cmake.exe --build . --target all install

      Problem:
      After building the application which depends on QtOpcUa in release configuration, the application depends on the debug configuration of qtopcua.

      As seen in dependencies:

      Fix:
      ${QT_ROOT_DIR}\6.6.3\msvc2019_64\lib\cmake\Qt6OpcUa
      is missing Qt6OpcUaTargets-release.cmake
      After copying Qt6OpcUaTargets-debug.cmake, renaming it to release and editing the contents to reflect release build, the application links against the correct configuration of opcua

      I am not sure if the last configuration that got built, is the one that can be found in ${QT_ROOT_DIR}\6.6.3\msvc2019_64\lib\cmake\Qt6OpcUa. I did not test that.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes