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. QSslSocket Crosscompile Beaglebone
Forum Updated to NodeBB v4.3 + New Features

QSslSocket Crosscompile Beaglebone

Scheduled Pinned Locked Moved Solved General and Desktop
17 Posts 4 Posters 1.2k 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.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #2

    Hi and welcome to devnet,

    Did you build Qt with OpenSSL support ?

    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
    0
    • J Offline
      J Offline
      jwalton49
      wrote on last edited by
      #3

      Not explicitly. My understanding is that it was enabled by default for using shared libs.

      1 Reply Last reply
      0
      • J Offline
        J Offline
        jwalton49
        wrote on last edited by
        #4

        If I put -openssl in my config file and give it the path to the header files using "I" , I get this error:
        ERROR: Feature 'openssl-runtime' was enabled, but the pre-condition '!features.securetransport && libs.openssl_headers' failed.

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

          Do you have the OpenSSL development package installed in the sysroot you use to cross-compile Qt ?

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

          J 2 Replies Last reply
          0
          • SGaistS SGaist

            Do you have the OpenSSL development package installed in the sysroot you use to cross-compile Qt ?

            J Offline
            J Offline
            jwalton49
            wrote on last edited by
            #6

            @SGaist I do. In this folder: /home/parallels/arm-toolchain/sysroot-glibc-linaro-2.25-2019.12-arm-linux-gnueabihf/usr/include/openssl

            1 Reply Last reply
            0
            • SGaistS SGaist

              Do you have the OpenSSL development package installed in the sysroot you use to cross-compile Qt ?

              J Offline
              J Offline
              jwalton49
              wrote on last edited by
              #7

              @SGaist I figured this out. I was only using the openssl headers, also needed crypto and internal folders.

              Pablo J. RoginaP 1 Reply Last reply
              1
              • J jwalton49

                @SGaist I figured this out. I was only using the openssl headers, also needed crypto and internal folders.

                Pablo J. RoginaP Offline
                Pablo J. RoginaP Offline
                Pablo J. Rogina
                wrote on last edited by
                #8

                @jwalton49 Great, so if your issue is solved please don't forget to mark your post as such!

                Upvote the answer(s) that helped you solve the issue
                Use "Topic Tools" button to mark your post as Solved
                Add screenshots via postimage.org
                Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

                J 1 Reply Last reply
                0
                • Pablo J. RoginaP Pablo J. Rogina

                  @jwalton49 Great, so if your issue is solved please don't forget to mark your post as such!

                  J Offline
                  J Offline
                  jwalton49
                  wrote on last edited by
                  #9

                  @Pablo-J-Rogina Well, that got me through running Configure but when I try to build QT I get this error:

                  Required feature library for file /home/parallels/Qt5.12.4/5.12.4/Src/qtbase/include/QtCore/../../src/corelib/plugin/qlibrary.h not available.

                  I'm not sure if this should be a new issue or not. It must be openssl related, builds normally if I don't use -openssl.

                  aha_1980A 1 Reply Last reply
                  0
                  • J jwalton49

                    @Pablo-J-Rogina Well, that got me through running Configure but when I try to build QT I get this error:

                    Required feature library for file /home/parallels/Qt5.12.4/5.12.4/Src/qtbase/include/QtCore/../../src/corelib/plugin/qlibrary.h not available.

                    I'm not sure if this should be a new issue or not. It must be openssl related, builds normally if I don't use -openssl.

                    aha_1980A Offline
                    aha_1980A Offline
                    aha_1980
                    Lifetime Qt Champion
                    wrote on last edited by
                    #10

                    Hi @jwalton49,

                    AFAIK, the OpenSSL libs are loaded at runtime, so I would not wonder QLibrary is required.

                    Did you configure your build without QLibrary?

                    Regards

                    Qt has to stay free or it will die.

                    J 1 Reply Last reply
                    0
                    • aha_1980A aha_1980

                      Hi @jwalton49,

                      AFAIK, the OpenSSL libs are loaded at runtime, so I would not wonder QLibrary is required.

                      Did you configure your build without QLibrary?

                      Regards

                      J Offline
                      J Offline
                      jwalton49
                      wrote on last edited by
                      #11

                      @aha_1980 said in QSslSocket Crosscompile Beaglebone:

                      QLibrary

                      I did not exclude that.

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

                        Two things:

                        • Please update to the latest 5.12 release, there where some bug fixes one of which fixed QSerialPort
                        • Use out of source builds, so if you have to start from scratch you just need to nuke the build folder and the sources stay clean.

                        Based on that, please do a clean build so you can check the build logs for the OpenSSL failure.

                        By the way, which version of OpenSSL do you have ?

                        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
                        • J Offline
                          J Offline
                          jwalton49
                          wrote on last edited by
                          #13

                          I'm using OpenSSL version 1.1.0l.
                          I delete all folders for every build. I'll upgrade my QT version. Thanks.

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

                            Then if possible, update also OpenSSL though current versions of Qt supports both.
                            I currently don't remember if you have an option to tell which version of OpenSSL to look for. Check with the --help option just in case. Helping detection might simplify your life.

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

                            J 1 Reply Last reply
                            0
                            • SGaistS SGaist

                              Then if possible, update also OpenSSL though current versions of Qt supports both.
                              I currently don't remember if you have an option to tell which version of OpenSSL to look for. Check with the --help option just in case. Helping detection might simplify your life.

                              J Offline
                              J Offline
                              jwalton49
                              wrote on last edited by
                              #15

                              @SGaist I have to put this aside for a few days but I did upgrade to QT12.5.6 and OpenSSL version 1.1.1d and I'm back to the original problem of:
                              ERROR: Feature 'openssl-runtime' was enabled, but the pre-condition '!features.securetransport && libs.openssl_headers' failed.

                              I'll research this further but have to get to something else right now.

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

                                You should check the configuration tests logs. That should give you the information about what exactly is failing.

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

                                J 1 Reply Last reply
                                1
                                • SGaistS SGaist

                                  You should check the configuration tests logs. That should give you the information about what exactly is failing.

                                  J Offline
                                  J Offline
                                  jwalton49
                                  wrote on last edited by
                                  #17

                                  @SGaist I have this all working now. Here is the setup for config that I used.
                                  configure -v -openssl-runtime -no-pkg-config -opensource -platform linux-g++ -debug -release -device linux-beagleboard-g++
                                  -prefix /QtForBBB OPENSSL_PREFIX=/home/parallels/tools/openssl
                                  -sysroot ~/arm-toolchain/sysroot-glibc-linaro-2.25-2019.12-arm-linux-gnueabihf
                                  -device-option CROSS_COMPILE=/opt/arm-toolchain/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-
                                  -nomake tests -nomake examples -no-opengl -no-xcb -no-eglfs -I /home/parallels/arm-toolchain/sysroot-glibc-linaro-2.25-2019.12-arm-linux-gnueabihf/usr/include -L /home/parallels/arm-toolchain/sysroot-glibc-linaro-2.25-2019.12-arm-linux-gnueabihf/usr/lib/openssl

                                  1 Reply Last reply
                                  1

                                  • Login

                                  • Login or register to search.
                                  • First post
                                    Last post
                                  0
                                  • Categories
                                  • Recent
                                  • Tags
                                  • Popular
                                  • Users
                                  • Groups
                                  • Search
                                  • Get Qt Extensions
                                  • Unsolved