open62541
-
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.qrcthis is my error : Could not find feature mbedtls.
what should i do ؟ -
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.qrcthis is my error : Could not find feature mbedtls.
what should i do ؟ -
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.qrcthis is my error : Could not find feature mbedtls.
what should i do ؟@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, specificallyqtConfig(mbedtls), come from?
Do you have ambedtls.prffile anywhere in your Qt installation? -
@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, specificallyqtConfig(mbedtls), come from?
Do you have ambedtls.prffile anywhere in your Qt installation? -
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.