Installing Problems with Qt OPC UA 5.15.2
-
Hello Community,
my Operating System is:
-
Linux 64 Bit
-
Xubuntu 20.04
-
Qt 5.15.2
I have tried to install the Qt OPC UA Plug-In Version 5.15.2 by using the following instructions:
https://blog.basyskom.com/building-qt-opc-ua-with-open62541/
git clone https://code.qt.io/qt/qtopcua.git cd qtopcua git checkout 5.15.2 mkdir build && cd build ~/Qt/5.15.2/gcc_64/bin/qmake .. make sudo make install
After compiling the code with the Linux terminal, I get the following error message:
In file included from /home/user/qtopcua/src/opcua/x509/qopcuax509certificatesigningrequest.cpp:38: /home/user/qtopcua/src/opcua/x509/openssl_symbols_p.h:59:10: fatal error: openssl/asn1.h: file or path not found 59 | #include <openssl/asn1.h> | ^~~~~~~~~~~~~~~~ compilation terminated. make[2]: *** [Makefile:7415: .obj/qopcuax509certificatesigningrequest.o] Error 1 make[2]: path „/home/user/qtopcua/build/src/opcua“ is left make[1]: *** [Makefile:49: sub-opcua-make_first] Error 2 make[1]: path „/home/user/qtopcua/build/src“ wird verlassen make: *** [Makefile:50: sub-src-make_first] Error 2
I checked my openssl version. I have installed openssl 1.1 .
So what is the reason why it is not finding the openssl/asn1.h file ?
Are there any problems linked with the Qt Version 5.15.2 ?How I can I solve this ?
Thank you very much!
-
-
There's no development distribution of Xubuntu.
You need the OpenSSL development package. Look for
libssl-dev
. -
Hi,
Do you have the OpenSSL development package installed ?
-
Hallo sGaist,
according to the terminal I have installed the OpenSSL version 1.1.1 on my virtual machine.
After checking Qt Maintenance Tool, there is a also a hook at the check box "OpenSSL 1.1.1d Toolkit".
So the OpenSSL development package should be installed... Is there any other way how to check if it is installed ?Thank you in advance!
-
hi
@Mauda said in Installing Problems with Qt OPC UA 5.15.2:Is there any other way how to check if it is installed ?
It should be under : Qt/Tools
On windows i had to pass the path to OpenSSL to my qmake command like this :
qmake "INCLUDEPATH+= C:\Qt\Tools\OpenSSL\Win_x64\include\openssl" ..
-
@LeLev said in Installing Problems with Qt OPC UA 5.15.2:
qmake "INCLUDEPATH+= C:\Qt\Tools\OpenSSL\Win_x64\include\openssl"
Hello LeLev,
my OpenSSL Installation is in the following forlder:
/home/user/Qt/Tools/OpenSSL/binaryRefering your qmake command:
qmake "INCLUDEPATH+= C:\Qt\Tools\OpenSSL\Win_x64\include\openssl"
how should I give the command to qmake during the build process ?
-
@LeLev paths on Unix systems use forward slashes.
@Mauda your distribution provides several types of packages, the standard to use from a user point of view and the corresponding development packages for librairies when you do development. In your case you likely have only the former currently installed, so search for the later with your package manager and install it.
By the way which distribution are you running ?
-
There's no development distribution of Xubuntu.
You need the OpenSSL development package. Look for
libssl-dev
.