Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. open62541
Forum Updated to NodeBB v4.3 + New Features

open62541

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 3 Posters 575 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.
  • S Offline
    S Offline
    Saee1101
    wrote on last edited by
    #1

    Hi , this is open62541-testserver.pro :

    TEMPLATE = app
    TARGET = open62541-testserver
    
    INCLUDEPATH += \
                   $$PWD/../../src/plugins/opcua/open62541
    
    DEPENDPATH += INCLUDEPATH
    
    CONFIG += c++11 console
    
    QT += opcua-private
    
    qtConfig(open62541):!qtConfig(system-open62541) {
        qtConfig(mbedtls):{
            QMAKE_USE_PRIVATE += mbedtls
            DEFINES += UA_ENABLE_ENCRYPTION UA_ENABLE_ENCRYPTION_MBEDTLS
        }
        include($$PWD/../../src/3rdparty/open62541.pri)
    } else {
        QMAKE_USE_PRIVATE += open62541
    }
    
    win32: DESTDIR = ./
    
    # Workaround for QTBUG-75020
    QMAKE_CFLAGS_RELEASE -= -O2
    QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO -= -O2
    
    SOURCES += \
               main.cpp \
               testserver.cpp \
               $$PWD/../../src/plugins/opcua/open62541/qopen62541utils.cpp \
               $$PWD/../../src/plugins/opcua/open62541/qopen62541valueconverter.cpp
    
    
    HEADERS += \
               testserver.h
    
    RESOURCES += certs.qrc
    

    this is my error : Could not find feature mbedtls.
    what should i do ؟

    jsulmJ C 2 Replies Last reply
    0
    • S Saee1101

      Hi , this is open62541-testserver.pro :

      TEMPLATE = app
      TARGET = open62541-testserver
      
      INCLUDEPATH += \
                     $$PWD/../../src/plugins/opcua/open62541
      
      DEPENDPATH += INCLUDEPATH
      
      CONFIG += c++11 console
      
      QT += opcua-private
      
      qtConfig(open62541):!qtConfig(system-open62541) {
          qtConfig(mbedtls):{
              QMAKE_USE_PRIVATE += mbedtls
              DEFINES += UA_ENABLE_ENCRYPTION UA_ENABLE_ENCRYPTION_MBEDTLS
          }
          include($$PWD/../../src/3rdparty/open62541.pri)
      } else {
          QMAKE_USE_PRIVATE += open62541
      }
      
      win32: DESTDIR = ./
      
      # Workaround for QTBUG-75020
      QMAKE_CFLAGS_RELEASE -= -O2
      QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO -= -O2
      
      SOURCES += \
                 main.cpp \
                 testserver.cpp \
                 $$PWD/../../src/plugins/opcua/open62541/qopen62541utils.cpp \
                 $$PWD/../../src/plugins/opcua/open62541/qopen62541valueconverter.cpp
      
      
      HEADERS += \
                 testserver.h
      
      RESOURCES += certs.qrc
      

      this is my error : Could not find feature mbedtls.
      what should i do ؟

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Saee1101 said in open62541:

      what should i do

      I guess install mbedtls?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      S 1 Reply Last reply
      0
      • S Saee1101

        Hi , this is open62541-testserver.pro :

        TEMPLATE = app
        TARGET = open62541-testserver
        
        INCLUDEPATH += \
                       $$PWD/../../src/plugins/opcua/open62541
        
        DEPENDPATH += INCLUDEPATH
        
        CONFIG += c++11 console
        
        QT += opcua-private
        
        qtConfig(open62541):!qtConfig(system-open62541) {
            qtConfig(mbedtls):{
                QMAKE_USE_PRIVATE += mbedtls
                DEFINES += UA_ENABLE_ENCRYPTION UA_ENABLE_ENCRYPTION_MBEDTLS
            }
            include($$PWD/../../src/3rdparty/open62541.pri)
        } else {
            QMAKE_USE_PRIVATE += open62541
        }
        
        win32: DESTDIR = ./
        
        # Workaround for QTBUG-75020
        QMAKE_CFLAGS_RELEASE -= -O2
        QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO -= -O2
        
        SOURCES += \
                   main.cpp \
                   testserver.cpp \
                   $$PWD/../../src/plugins/opcua/open62541/qopen62541utils.cpp \
                   $$PWD/../../src/plugins/opcua/open62541/qopen62541valueconverter.cpp
        
        
        HEADERS += \
                   testserver.h
        
        RESOURCES += certs.qrc
        

        this is my error : Could not find feature mbedtls.
        what should i do ؟

        C Offline
        C Offline
        ChrisW67
        wrote on last edited by
        #3

        @Saee1101 Neither the mbedtld GitHub repo nor open62541 repo seems to provide qmake feature files (.../mkspecs/features/blah.prf).

        Are you using some old version?
        Where did this PRO file construction, specifically qtConfig(mbedtls), come from?
        Do you have a mbedtls.prf file anywhere in your Qt installation?

        S 1 Reply Last reply
        0
        • C ChrisW67

          @Saee1101 Neither the mbedtld GitHub repo nor open62541 repo seems to provide qmake feature files (.../mkspecs/features/blah.prf).

          Are you using some old version?
          Where did this PRO file construction, specifically qtConfig(mbedtls), come from?
          Do you have a mbedtls.prf file anywhere in your Qt installation?

          S Offline
          S Offline
          Saee1101
          wrote on last edited by Saee1101
          #4

          @ChrisW67 said in open62541:

          Do you have a mbedtls.prf file anywhere in your Qt installation?

          NO , I haven't .

          C 1 Reply Last reply
          0
          • jsulmJ jsulm

            @Saee1101 said in open62541:

            what should i do

            I guess install mbedtls?

            S Offline
            S Offline
            Saee1101
            wrote on last edited by
            #5

            @jsulm I install it . but i get error again : Could not find feature mbedtls.

            1 Reply Last reply
            0
            • S Saee1101

              @ChrisW67 said in open62541:

              Do you have a mbedtls.prf file anywhere in your Qt installation?

              NO , I haven't .

              C Offline
              C Offline
              ChrisW67
              wrote on last edited by
              #6

              @Saee1101 said in open62541:

              NO , I haven't .

              Then you will have to:

              • manually set INCLUDEPATH and LIBS to find the library's components for the compiler and linker (which is what I assume the feature file does),
              • use CMake instead of qmake (there cmake support in the open62541 source git), or
              • find a version of mbedtls and/or open62541 that do provide matching feature files for Qt qmake.
              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