Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Building QtOpcUa WrapOpenSSL not found
Forum Updated to NodeBB v4.3 + New Features

Building QtOpcUa WrapOpenSSL not found

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
1 Posts 1 Posters 227 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Redman
    wrote on last edited by
    #1

    Hi,

    im building QtOpcUa from source.
    For that I have to build OpenSSL from source first.

    OpenSLL was build successfully.

    Now, when trying to configure QtOpcUa with cmake I get following output:

    C:\Dev\Projekte\QtOPCUA\qtopcua6.63\qtopcua\build>cmake -G "Ninja" .. --log-level=STATUS
    -- The CXX compiler identification is MSVC 19.37.32822.0
    -- The C compiler identification is MSVC 19.37.32822.0
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    -- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.37.32822/bin/Hostx64/x64/cl.exe - skipped
    -- Detecting CXX compile features
    -- Detecting CXX compile features - done
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.37.32822/bin/Hostx64/x64/cl.exe - skipped
    -- Detecting C compile features
    -- Detecting C compile features - done
    -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
    -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
    -- Looking for pthread_create in pthreads
    -- Looking for pthread_create in pthreads - not found
    -- Looking for pthread_create in pthread
    -- Looking for pthread_create in pthread - not found
    -- Found Threads: TRUE
    -- Performing Test HAVE_STDATOMIC
    -- Performing Test HAVE_STDATOMIC - Success
    -- Found WrapAtomic: TRUE
    -- Could NOT find WrapVulkanHeaders (missing: Vulkan_INCLUDE_DIR)
    -- Could NOT find WrapVulkanHeaders (missing: Vulkan_INCLUDE_DIR)
    -- Setting build type to 'Release' as none was specified.
    -- Checking for feature set changes
    -- CMAKE_STRIP (original): C:/Strawberry/c/bin/strip.exe
    -- Found OpenSSL: C:/Dev/Projekte/OpenSSL/3.2.1/release/openssl-3.2.1/libcrypto.lib (found suitable version "3.2.1", minimum required is "1.1")
    -- Found WrapOpenSSLHeaders: C:/Dev/Projekte/OpenSSL/3.2.1/release/openssl-3.2.1/include (found suitable version "3.2.1", minimum required is "1.1")
    -- Found WrapOpenSSL: C:/Dev/Projekte/OpenSSL/3.2.1/release/openssl-3.2.1/libcrypto.lib (found suitable version "3.2.1", minimum required is "1.1")
    -- Performing Test HAVE_uacpp
    -- Performing Test HAVE_uacpp - Failed
    -- Generated QtModulePlugins.cmake files for the following modules: OpcUa
    -- The following packages have been found:
    
     * Qt6BuildInternals (required version >= 6.6.3)
     * Qt6CoreTools (required version >= 6.6.3)
     * Qt6Core (required version >= 6.6.3)
     * Qt6Network (required version >= 6.6.3)
     * Qt6GuiTools (required version >= 6.6.3)
     * Qt6Gui (required version >= 6.6.3)
     * Qt6QmlTools (required version >= 6.6.3)
     * Qt6Quick (required version >= 6.6.3)
     * Qt6QuickTest (required version >= 6.6.3)
     * Qt6WidgetsTools (required version >= 6.6.3)
     * Qt6Widgets (required version >= 6.6.3)
     * Qt6 (required version >= 6.6.3)
     * OpenSSL (required version >= 1.1)
     * WrapOpenSSLHeaders (required version >= 1.1)
     * WrapOpenSSL (required version >= 1.1)
    
    -- The following OPTIONAL packages have not been found:
    
     * PkgConfig
     * Qt6QmlCompilerPlusPrivate
     * Vulkan
     * WrapVulkanHeaders
     * Uacpp, The Unified Automation C++ OPC UA SDK, <https://www.unified-automation.com/products/server-sdk/c-ua-server-sdk.html>
    
    
    -- Configuration summary shown below. It has also been written to C:/Dev/Projekte/QtOPCUA/qtopcua6.63/qtopcua/build/config.summary
    -- Configure with --log-level=STATUS or higher to increase CMake's message verbosity. The log level does not persist across reconfigurations.
    
    -- Configure summary:
    
    Qt Opcua:
      Open62541 .............................. yes
      Unified Automation C++ SDK ............. no
      Support for namespace 0 NodeId names ... yes
      Namespace 0 NodeIds generator .......... no
      Open62541 security support ............. yes
      Support for global discovery server .... yes
    
    
    -- Configuring done (3.1s)
    CMake Error at C:/Dev/Qt/6.6.3/msvc2019_64/lib/cmake/Qt6/QtTargetHelpers.cmake:171 (target_link_libraries):
      Target "OpcUa" links to:
    
        WrapOpenSSL::WrapOpenSSL
    
      but the target was not found.  Possible reasons include:
    
        * There is a typo in the target name.
        * A find_package call is missing for an IMPORTED target.
        * An ALIAS target is missing.
    
    Call Stack (most recent call first):
      src/opcua/CMakeLists.txt:109 (qt_internal_extend_target)
    
    
    CMake Error at C:/Dev/Qt/6.6.3/msvc2019_64/lib/cmake/Qt6/QtTargetHelpers.cmake:171 (target_link_libraries):
      Target "QOpen62541Plugin" links to:
    
        WrapOpenSSL::WrapOpenSSL
    
      but the target was not found.  Possible reasons include:
    
        * There is a typo in the target name.
        * A find_package call is missing for an IMPORTED target.
        * An ALIAS target is missing.
    
    Call Stack (most recent call first):
      src/plugins/opcua/open62541/CMakeLists.txt:52 (qt_internal_extend_target)
    
    
    -- Generating done (0.1s)
    CMake Generate step failed.  Build files cannot be regenerated correctly.
    

    Now, I am not quite sure why WrapOpenSSL::WrapOpenSSL can't be found.
    What confuses me a bit, is that

    Found OpenSSL: C:/Dev/Projekte/OpenSSL/3.2.1/release/openssl-3.2.1/libcrypto.lib (found suitable version "3.2.1", minimum required is "1.1")
    Found WrapOpenSSL: C:/Dev/Projekte/OpenSSL/3.2.1/release/openssl-3.2.1/libcrypto.lib (found suitable version "3.2.1", minimum required is "1.1")
    

    point to the same .lib file. Not sure if that is the problem.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved