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

Issues building QtOpcua with mbedtls encryption enabled on Windows

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • P2: Important
    • None
    • 5.15.2
    • OpcUA
    • None
    • Windows

    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

      {{}}

      Attachments

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

        Activity

          People

            fmeerkoetter Frank Meerkötter
            magnaboscol Luca Magnabosco
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes