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. Installing Problems with Qt OPC UA 5.15.2
Qt 6.11 is out! See what's new in the release blog

Installing Problems with Qt OPC UA 5.15.2

Scheduled Pinned Locked Moved Solved General and Desktop
12 Posts 4 Posters 3.4k Views 2 Watching
  • 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.
  • M Offline
    M Offline
    Mauda
    wrote on last edited by
    #1

    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!

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #10

      There's no development distribution of Xubuntu.

      You need the OpenSSL development package. Look for libssl-dev.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      M 1 Reply Last reply
      1
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #2

        Hi,

        Do you have the OpenSSL development package installed ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        1
        • M Offline
          M Offline
          Mauda
          wrote on last edited by
          #3

          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!

          ODБOïO 1 Reply Last reply
          0
          • M Mauda

            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!

            ODБOïO Offline
            ODБOïO Offline
            ODБOï
            wrote on last edited by
            #4

            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" ..
            
            M 1 Reply Last reply
            0
            • ODБOïO ODБOï

              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" ..
              
              M Offline
              M Offline
              Mauda
              wrote on last edited by
              #5

              @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/binary

              Refering 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 ?

              ODБOïO I 2 Replies Last reply
              0
              • M Mauda

                @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/binary

                Refering 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 ?

                ODБOïO Offline
                ODБOïO Offline
                ODБOï
                wrote on last edited by
                #6

                @Mauda sry i don't know Linux
                maybe qmake "INCLUDEPATH+= \home\user\Qt\Tools\OpenSSL\include" .. ?
                this should point to the folder where asn1.h is located

                M 1 Reply Last reply
                0
                • ODБOïO ODБOï

                  @Mauda sry i don't know Linux
                  maybe qmake "INCLUDEPATH+= \home\user\Qt\Tools\OpenSSL\include" .. ?
                  this should point to the folder where asn1.h is located

                  M Offline
                  M Offline
                  Mauda
                  wrote on last edited by
                  #7

                  @LeLev thanks but it doesn´t work with that

                  1 Reply Last reply
                  0
                  • SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by
                    #8

                    @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 ?

                    Interested in AI ? www.idiap.ch
                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                    M 1 Reply Last reply
                    1
                    • SGaistS SGaist

                      @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 ?

                      M Offline
                      M Offline
                      Mauda
                      wrote on last edited by
                      #9

                      @SGaist
                      My Distribution is Xubuntu 20.04.
                      I installed the synaptic package manager ... which packages do I have to install to get the development distribution of Xubuntu 20.04 ?

                      1 Reply Last reply
                      0
                      • SGaistS Offline
                        SGaistS Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on last edited by
                        #10

                        There's no development distribution of Xubuntu.

                        You need the OpenSSL development package. Look for libssl-dev.

                        Interested in AI ? www.idiap.ch
                        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                        M 1 Reply Last reply
                        1
                        • SGaistS SGaist

                          There's no development distribution of Xubuntu.

                          You need the OpenSSL development package. Look for libssl-dev.

                          M Offline
                          M Offline
                          Mauda
                          wrote on last edited by Mauda
                          #11

                          @SGaist this suggestion helped! I downloaded the OpenSSL development package:

                          libssl-dev
                          

                          The Installation was successful and I have Access to the full Qt OPC UA 5.15.2 Library now.
                          Thank you very much!

                          1 Reply Last reply
                          1
                          • M Mauda

                            @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/binary

                            Refering 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 ?

                            I Offline
                            I Offline
                            iavor
                            wrote on last edited by
                            #12

                            @Mauda This works but with no "\openssl" at the end i.e.
                            qmake "INCLUDEPATH+= C:\Qt\Tools\OpenSSL\Win_x64\include" ..

                            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