Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Problem with openSSL and Qt 6.5.0 beta 2
Forum Updated to NodeBB v4.3 + New Features

Problem with openSSL and Qt 6.5.0 beta 2

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
14 Posts 5 Posters 3.0k 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.
  • F Offline
    F Offline
    Francky033
    wrote on 27 Jan 2023, 18:06 last edited by Francky033
    #1

    Until this morning, my application was working normally on Android. But since the update from Qt 6.5.0 beta1 to beta2, internet access is not possible anymore...

    I get the error message :

    E linker  : library "/system/lib/libcrypto.so" ("/system/lib/libcrypto.so") needed or dlopened by "/data/app/~~Wx3e7tnLLjpOOU6Qk_lGUw==/net.winstars3.test-ZPEUq_vkP5poICf2sCM8ew==/lib/arm64/libQt6Core_arm64-v8a.so" is not accessible for the namespace: [name="classloader-namespace", ld_library_paths="", default_library_paths="/data/app/~~Wx3e7tnLLjpOOU6Qk_lGUw==/net.winstars3.test-ZPEUq_vkP5poICf2sCM8ew==/lib/arm64:/data/app/~~Wx3e7tnLLjpOOU6Qk_lGUw==/net.test-ZPEUq_vkP5poICf2sCM8ew==/base.apk!/lib/arm64-v8a", permitted_paths="/data:/mnt/expand:/data/data/net.winstars3.test"]
    W qt.tlsbackend.ossl: : Failed to load libssl/libcrypto.
    

    After reading this article on the blog (https://www.qt.io/blog/moving-to-openssl-3-in-binary-builds-starting-from-qt-6.5-beta-2) , I compiled in shared the openssl 3.0.7 library for Android, with success, but I still get the same error message.

    But how to know with which version of openssl Qt 6.5.0 beta2 has been compiled ?

    What can I do?

    Thank you for your help!

    1 Reply Last reply
    0
    • J Offline
      J Offline
      JoeCFD
      wrote on 27 Jan 2023, 18:16 last edited by JoeCFD
      #2

      I guess libcrypto.so is not added to your apk. You can manually check if your apk has it or not.
      https://stackoverflow.com/questions/3599210/how-to-view-the-contents-of-an-android-apk-file

      I have something like in my pro file for Qt5.
      LIBS += $$ANDROID_SDK_ROOT/android_openssl/latest/arm64/libcrypto_1_1.so
      ANDROID_EXTRA_LIBS += $$ANDROID_SDK_ROOT/android_openssl/latest/arm64/libcrypto_1_1.so

      1 Reply Last reply
      0
      • F Offline
        F Offline
        Francky033
        wrote on 27 Jan 2023, 20:02 last edited by Francky033
        #3

        Hi JoeCFD,

        I have just checked following your method and there are libraries libcrypto.so and libssl.so included in the apk file (and they are in the right format: arm64_v8a).
        But, is this new Qt 6.5.0 beta2 version now incompatible with openssl 1.1 because I just tried with openssl1.1 and it doesn't work any more?

        J 1 Reply Last reply 27 Jan 2023, 20:20
        0
        • F Francky033
          27 Jan 2023, 20:02

          Hi JoeCFD,

          I have just checked following your method and there are libraries libcrypto.so and libssl.so included in the apk file (and they are in the right format: arm64_v8a).
          But, is this new Qt 6.5.0 beta2 version now incompatible with openssl 1.1 because I just tried with openssl1.1 and it doesn't work any more?

          J Offline
          J Offline
          JoeCFD
          wrote on 27 Jan 2023, 20:20 last edited by JoeCFD
          #4
          This post is deleted!
          1 Reply Last reply
          0
          • J Offline
            J Offline
            JoeCFD
            wrote on 27 Jan 2023, 20:24 last edited by
            #5

            https://doc-snapshots.qt.io/qt6-6.2/android-openssl-support.html

            1 Reply Last reply
            0
            • F Offline
              F Offline
              Francky033
              wrote on 28 Jan 2023, 08:09 last edited by Francky033
              #6

              Thanks JoeCDF for the hints, but I had already followed these explanations for the previous version of my program, and everything worked correctly.
              I just have the impression that there was a change with Qt 6.5.0 beta2... but what...?

              The error message is not very explicit. How can I find out more about what's wrong?

              J 1 Reply Last reply 30 Jan 2023, 15:30
              0
              • F Francky033
                28 Jan 2023, 08:09

                Thanks JoeCDF for the hints, but I had already followed these explanations for the previous version of my program, and everything worked correctly.
                I just have the impression that there was a change with Qt 6.5.0 beta2... but what...?

                The error message is not very explicit. How can I find out more about what's wrong?

                J Offline
                J Offline
                JoeCFD
                wrote on 30 Jan 2023, 15:30 last edited by JoeCFD
                #7

                @Francky033 then do not use Qt 6.5.0 and try the version which works. Not the latest version is the best. I have not switched to Qt6.

                F 1 Reply Last reply 31 Jan 2023, 14:45
                0
                • J JoeCFD
                  30 Jan 2023, 15:30

                  @Francky033 then do not use Qt 6.5.0 and try the version which works. Not the latest version is the best. I have not switched to Qt6.

                  F Offline
                  F Offline
                  Francky033
                  wrote on 31 Jan 2023, 14:45 last edited by
                  #8

                  Ok. Thanks @JoeCFD !

                  E 1 Reply Last reply 3 Feb 2023, 11:19
                  0
                  • L Offline
                    L Offline
                    Lilde
                    wrote on 3 Feb 2023, 09:25 last edited by
                    #9

                    @Francky033 I have the same issue, have you found a workaround or post a ticket on bug tracker ?

                    1 Reply Last reply
                    0
                    • F Francky033
                      31 Jan 2023, 14:45

                      Ok. Thanks @JoeCFD !

                      E Offline
                      E Offline
                      ekkescorner
                      Qt Champions 2016
                      wrote on 3 Feb 2023, 11:19 last edited by
                      #10

                      @Francky033 you should oben a bugreport - so Qt knows about problem in 6.5 Beta

                      ekke ... Qt Champion 2016 | 2024 ... mobile business apps
                      5.15 --> 6.8 https://t1p.de/ekkeChecklist
                      QMake --> CMake https://t1p.de/ekkeCMakeMobileApps

                      L 1 Reply Last reply 3 Feb 2023, 11:48
                      0
                      • E ekkescorner
                        3 Feb 2023, 11:19

                        @Francky033 you should oben a bugreport - so Qt knows about problem in 6.5 Beta

                        L Offline
                        L Offline
                        Lilde
                        wrote on 3 Feb 2023, 11:48 last edited by Lilde 2 Mar 2023, 11:48
                        #11

                        I open the bug report : https://bugreports.qt.io/browse/QTBUG-110915
                        @Francky033 Please feel free to add comments about your try with openssl 3

                        1 Reply Last reply
                        0
                        • F Offline
                          F Offline
                          Francky033
                          wrote on 5 Feb 2023, 06:21 last edited by
                          #12

                          ok @Lilde !

                          1 Reply Last reply
                          0
                          • F Offline
                            F Offline
                            Francky033
                            wrote on 6 Feb 2023, 20:36 last edited by
                            #13

                            It works in the end! In fact, you have to rename libcryto.so to libcrypto_3.so and libssl.so to libssl_3.so

                            Thanks to all !

                            1 Reply Last reply
                            1
                            • R Offline
                              R Offline
                              RK Charles
                              wrote on 7 Feb 2023, 08:06 last edited by
                              #14

                              @Francky033 said in Problem with openSSL and Qt 6.5.0 beta 2:

                              Thanks JoeCDF for the hints, but I had already followed these explanations for the previous version of my program, and everything worked correctly.
                              I just have the impression that there was a change with Qt 6.5.0 beta2... but what...?
                              The error message is not very explicit. How can I find out more about what's wrong?

                              Thank you for the suggestions, JoeCDF, but I had already followed these instructions for the previous version of my programme, and everything worked fine.
                              I just got the impression that something changed with Qt 6.5.0 beta2... but what...?

                              The error message isn't very clear. What can I do to learn more about what's wrong?

                              1 Reply Last reply
                              0

                              1/14

                              27 Jan 2023, 18:06

                              • Login

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