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. Is this still the way to get SSL working on Android: http://doc.qt.io/qt-5/opensslsupport.html
Forum Updated to NodeBB v4.3 + New Features

Is this still the way to get SSL working on Android: http://doc.qt.io/qt-5/opensslsupport.html

Scheduled Pinned Locked Moved Solved Mobile and Embedded
16 Posts 3 Posters 5.1k 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
    #7

    What version of the NDK, SDK, JDK are you using ?

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

    V 1 Reply Last reply
    0
    • SGaistS SGaist

      What version of the NDK, SDK, JDK are you using ?

      V Offline
      V Offline
      vvvvv
      wrote on last edited by
      #8

      @SGaist
      I am using NDK android-ndk-r16b
      The SDK is for API-27

      java version "1.8.0_121"
      Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
      Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)

      The strange thing is that it seems from the trace that the right include path are there???

      1 Reply Last reply
      0
      • V Offline
        V Offline
        vvvvv
        wrote on last edited by
        #9
        This post is deleted!
        1 Reply Last reply
        0
        • V Offline
          V Offline
          vvvvv
          wrote on last edited by
          #10

          these is the result from a command to get the used include path

          echo | arm-linux-androideabi-gcc -Wp,-v -x c++ - -fsyntax-only
          ignoring nonexistent directory "/home/wvw/sslbuild/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/include"
          ignoring nonexistent directory "/home/wvw/sslbuild/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/../lib/gcc/../../include/c++/4.9.x"
          ignoring nonexistent directory "/home/wvw/sslbuild/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/../lib/gcc/../../include/c++/4.9.x/arm-linux-androideabi"
          ignoring nonexistent directory "/home/wvw/sslbuild/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/../lib/gcc/../../include/c++/4.9.x/backward"
          ignoring duplicate directory "/home/wvw/sslbuild/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/../lib/gcc/../../lib/gcc/arm-linux-androideabi/4.9.x/include"
          ignoring nonexistent directory "/tmp/7b21daf2c1357ae66bd1633d4faf8a6d/sysroot/usr/local/include"
          ignoring duplicate directory "/home/wvw/sslbuild/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/../lib/gcc/../../lib/gcc/arm-linux-androideabi/4.9.x/include-fixed"
          ignoring nonexistent directory "/home/wvw/sslbuild/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/../lib/gcc/../../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/include"
          ignoring nonexistent directory "/tmp/7b21daf2c1357ae66bd1633d4faf8a6d/sysroot/usr/include"
          #include "..." search starts here:
          #include <...> search starts here:
           /home/wvw/sslbuild/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/include
           /home/wvw/sslbuild/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/include-fixed
          End of search list.
          wvw@wvw-Aspire-F5-573G:~/sslbuild/openssl-1.0.2n/include/openssl$ 
          
          

          It complains about non existing include path, I will check these later...

          1 Reply Last reply
          0
          • V Offline
            V Offline
            vvvvv
            wrote on last edited by
            #11

            Some progress.....

            I have noticed a difference between NDK16b and e.g. NDK12b

            In the later android NDK distributions header files seem te be located in de sysroot directory.
            https://developer.android.com/ndk/guides/standalone_toolchain.html

            Building using the instructions http://doc.qt.io/qt-5/opensslsupport.html is working for the older NDK not for the newer. I will have to see if I can fix the Setenv_android.sh script to make it work for the newer NDK's too.

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

              Android has a tendency to break compatibility from one release of the NDK to the other.

              You can find in the Android Getting Started of Qt's documentation the recommended versions of these dependencies.

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

                Thank you ! I will if it works with the recommended version.

                ekkescornerE 1 Reply Last reply
                0
                • V vvvvv

                  Thank you ! I will if it works with the recommended version.

                  ekkescornerE Offline
                  ekkescornerE Offline
                  ekkescorner
                  Qt Champions 2016
                  wrote on last edited by
                  #14

                  @vvvvv you should use NDK r10e
                  perhaps this can help you: https://github.com/ekke/android-openssl-qt

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

                  V 1 Reply Last reply
                  1
                  • ekkescornerE ekkescorner

                    @vvvvv you should use NDK r10e
                    perhaps this can help you: https://github.com/ekke/android-openssl-qt

                    V Offline
                    V Offline
                    vvvvv
                    wrote on last edited by
                    #15

                    @ekkescorner
                    It seem to be working now. I have used the NDK10e and SDK version21
                    Thank you for all,

                    cheers

                    ekkescornerE 1 Reply Last reply
                    0
                    • V vvvvv

                      @ekkescorner
                      It seem to be working now. I have used the NDK10e and SDK version21
                      Thank you for all,

                      cheers

                      ekkescornerE Offline
                      ekkescornerE Offline
                      ekkescorner
                      Qt Champions 2016
                      wrote on last edited by
                      #16

                      @vvvvv great to hear

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

                      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