Details
-
Bug
-
Resolution: Won't Do
-
P2: Important
-
None
-
5.15.2
-
None
Description
While trying to build the QtOpcUa plugin for Windows I have found a couple of issues:
1. mbedtls auto detection seems to fail
The only way that I found in order to get qmake finding that mbedtls was available on my system was adding mbedtls include and libs directories in the qmodule.pri file. I suppose that is not the right approach but I tried and failed to get the same result in a couple of ways:
- installing mbedtls using VCPKG and setting ??"CMAKE_TOOLCHAIN_FILE:STRING=<vcpkg root folder>/scripts/buildsystems/vcpkg.cmake" ??on "Qt Creator->Options->Kits-><kit>->CMake Configuration"
- compiling mbedtls using Cmake and using "export(PACKAGE mbedtls)" to export the package to the package-registry
Am I missing something or is it editing the qmodule.pri the right solution?
2. missing library import in open62541.pri
To be able to compile I had to add the following lines
win32: qtConfig(mbedtls): {
LIBS += -ladvapi32
{{ }}}
Indeed it seems mbedtls uses CryptAcquireContextA() and others from Advapi32
3. missing include path for OpenSSL
to prevent errors due to the includes in openssl_symbols_p.h
{{}}