[Interest] QTOPCUA: Can't compile with UACpp plugin

Klaus Schwarzkopf klaus.schwarzkopf at sensortherm.de
Thu Feb 25 22:50:52 CET 2021


Hello Thiago,

it was a good tip. I installed libcrypto beside libssl and libxml2 too.

i removed the condidion in the file src/opcua/configure.json

"condition": "!config.win32 && var.QT_EDITION != 'OpenSource'"


Now i got the next error.

The company Unified Automation says, maybe the wrapper is broken, 
because they continue the development.

Best regards,
Klaus



klaus at klaus-HP-Pavilion-All-in-One-24-k0xxx:~/qtopcua_cpp/build$ qmake 
.. CONFIG+=debug -- UACPP_PREFIX=/home/klaus/uasdkcpp/sdk
Info: creating stash file /home/klaus/qtopcua_cpp/build/.qmake.stash
Info: creating cache file /home/klaus/qtopcua_cpp/build/.qmake.cache

Running configuration tests...
Checking for Open62541... no
Checking for Unified Automation C++ SDK... no
Done running configuration tests.

Configure summary:

Qt Opcua:
   Open62541 .............................. yes
   Unified Automation C++ SDK ............. no
   Support for namespace 0 NodeId names ... yes
   Namespace 0 NodeIds generator .......... no

Qt is now configured for building. Just run 'make'.
Once everything is built, you must run 'make install'.
Qt will be installed into '/usr'.

Prior to reconfiguration, make sure you remove any leftovers from
the previous build.

klaus at klaus-HP-Pavilion-All-in-One-24-k0xxx:~/qtopcua_cpp/build$ cat 
config.log
Command line: UACPP_PREFIX=/home/klaus/uasdkcpp/sdk
Global lib dirs: [] [/usr/lib/gcc/x86_64-linux-gnu/9 
/usr/lib/x86_64-linux-gnu /usr/lib /lib/x86_64-linux-gnu /lib]
Global inc dirs: [] [/usr/include/c++/9 
/usr/include/x86_64-linux-gnu/c++/9 /usr/include/c++/9/backward 
/usr/lib/gcc/x86_64-linux-gnu/9/include /usr/local/include 
/usr/include/x86_64-linux-gnu /usr/include]
looking for library open62541
Trying source 0 (type inline) of library open62541 ...
   => source failed condition '!config.win32 && input.open62541 == 
'system''.
Trying source 1 (type inline) of library open62541 ...
   => source failed condition 'config.win32 && input.open62541 == 'system''.
Trying source 2 (type pkgConfig) of library open62541 ...
   => source failed condition 'input.open62541 == 'system''.
test config.qtopcua_opcua.libraries.open62541 FAILED
looking for library uacpp
Trying source 0 (type uacpp) of library uacpp ...
   => source failed condition 'config.win32 && var.QT_EDITION != 
'OpenSource''.
Trying source 1 (type uacpp) of library uacpp ...
+ cd /home/klaus/qtopcua_cpp/build/config.tests/uacpp && 
/usr/lib/qt5/bin/qmake "CONFIG -= qt debug_and_release app_bundle 
lib_bundle" "CONFIG += shared warn_off console single_arch" 'QMAKE_USE 
+= uacpp' 'QMAKE_LIBS_UACPP = /usr/lib/x86_64-linux-gnu/libcrypto.so 
/usr/lib/x86_64-linux-gnu/libssl.so 
/usr/lib/x86_64-linux-gnu/libxml2.so' 'QMAKE_LIBS_UACPP_DEBUG = 
/home/klaus/uasdkcpp/sdk/lib/libuaclientcppd.a 
/home/klaus/uasdkcpp/sdk/lib/libuabasecppd.a 
/home/klaus/uasdkcpp/sdk/lib/libuastackd.so 
/home/klaus/uasdkcpp/sdk/lib/libuapkicppd.a 
/home/klaus/uasdkcpp/sdk/lib/libxmlparsercppd.a' 
'QMAKE_LIBS_UACPP_RELEASE = 
/home/klaus/uasdkcpp/sdk/lib/libuaclientcpp.a 
/home/klaus/uasdkcpp/sdk/lib/libuabasecpp.a 
/home/klaus/uasdkcpp/sdk/lib/libuastack.so 
/home/klaus/uasdkcpp/sdk/lib/libuapkicpp.a 
/home/klaus/uasdkcpp/sdk/lib/libxmlparsercpp.a' 'QMAKE_INCDIR_UACPP = 
/home/klaus/uasdkcpp/sdk/include/uabasecpp 
/home/klaus/uasdkcpp/sdk/include/uaclientcpp 
/home/klaus/uasdkcpp/sdk/include/uastack 
/home/klaus/uasdkcpp/sdk/include/uapkicpp 
/home/klaus/uasdkcpp/sdk/include' /home/klaus/qtopcua_cpp/config.tests/uacpp
+ cd /home/klaus/qtopcua_cpp/build/config.tests/uacpp && MAKEFLAGS= make
 > g++ -c -pipe -O2 -w -fPIC 
-I/home/klaus/qtopcua_cpp/config.tests/uacpp -I. 
-I/home/klaus/uasdkcpp/sdk/include/uabasecpp 
-I/home/klaus/uasdkcpp/sdk/include/uaclientcpp 
-I/home/klaus/uasdkcpp/sdk/include/uastack 
-I/home/klaus/uasdkcpp/sdk/include/uapkicpp 
-I/home/klaus/uasdkcpp/sdk/include 
-I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o main.o 
/home/klaus/qtopcua_cpp/config.tests/uacpp/main.cpp
 > g++ -Wl,-O1 -o uacpp main.o 
/home/klaus/uasdkcpp/sdk/lib/libuaclientcpp.a 
/home/klaus/uasdkcpp/sdk/lib/libuabasecpp.a 
/home/klaus/uasdkcpp/sdk/lib/libuastack.so 
/home/klaus/uasdkcpp/sdk/lib/libuapkicpp.a 
/home/klaus/uasdkcpp/sdk/lib/libxmlparsercpp.a 
/usr/lib/x86_64-linux-gnu/libcrypto.so 
/usr/lib/x86_64-linux-gnu/libssl.so /usr/lib/x86_64-linux-gnu/libxml2.so
 > /usr/bin/ld: 
/home/klaus/uasdkcpp/sdk/lib/libuapkicpp.a(uapkicertificate.cpp.o): in 
function `UaPkiCertificate::createCertificateFilePath(UaString const&) 
const':
 > 
uapkicertificate.cpp:(.text._ZNK16UaPkiCertificate25createCertificateFilePathERK8UaString+0x55): 
undefined reference to `UaDir::toNativeSeparators(UaUniString const&)'
 > /usr/bin/ld: 
uapkicertificate.cpp:(.text._ZNK16UaPkiCertificate25createCertificateFilePathERK8UaString+0x234): 
undefined reference to `UaDir::separator()'
 > /usr/bin/ld: 
uapkicertificate.cpp:(.text._ZNK16UaPkiCertificate25createCertificateFilePathERK8UaString+0x27a): 
undefined reference to `UaDir::separator()'
 > collect2: error: ld returned 1 exit status
 > make: *** [Makefile:67: uacpp] Error 1
  => source failed verification.
test config.qtopcua_opcua.libraries.uacpp FAILED







On 24.02.21 22:38, Thiago Macieira wrote:
> On Wednesday, 24 February 2021 08:12:50 PST Klaus Schwarzkopf wrote:
>> looking for library uacpp
>> Trying source 0 (type uacpp) of library uacpp ...
>>     => source failed condition 'config.win32 && var.QT_EDITION !=
>> 'OpenSource''.
>> Trying source 1 (type uacpp) of library uacpp ...
>>     => source failed condition '!config.win32 && var.QT_EDITION !=
>> 'OpenSource''.
>> test config.qtopcua_opcua.libraries.uacpp FAILED
>>
>>
>>
>> qmake still don't want this sdk:
>>     Unified Automation C++ SDK ............. no
> 
>                      "builds": {
>                         "debug": "-luaclientcppd -luabasecppd -luastackd -
> luapkicppd -lxmlparsercppd",
>                         "release": "-luaclientcpp -luabasecpp -luastack -
> luapkicpp -lxmlparsercpp"
>                      },
>                      "libs": "-lcrypto -lssl -lxml2",
>   
> Make sure all the libraries above exist and you can link to them. That
> includes the OpenSSL and libxml2 ones.
> 


-- 
Sensortherm GmbH
Weißkirchener Straße 2-6
D-61449 Steinbach
Germany

Registergericht:/Registry office: Amtsgericht Frankfurt/M.
Eintragungs-Nr.:/Registry-No. HRB 52438
Geschäftsführer:/General Manager: Benjamin Wuttke


More information about the Interest mailing list