Details
-
Bug
-
Resolution: Out of scope
-
P2: Important
-
None
-
6.6.3
-
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
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.
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
- duplicates
-
QTBUG-115206 Document how to install debug-and-release builds to avoid missing debug libraries (upstream cmake multi-config install issue)
- Open