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. Compiling and linking OPENSSL For ANDROID in QT
Forum Updated to NodeBB v4.3 + New Features

Compiling and linking OPENSSL For ANDROID in QT

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
8 Posts 3 Posters 1.3k Views 1 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.
  • ashajgA Offline
    ashajgA Offline
    ashajg
    wrote on last edited by
    #1

    Hi

    I am new to QT and want to know how can I get Openssl for android.
    Is there any precompiled Openssl present which i can use??
    I went through this link http://doc.qt.io/qt-5/opensslsupport.html but didn't got much.

    ekkescornerE 1 Reply Last reply
    0
    • dheerendraD Offline
      dheerendraD Offline
      dheerendra
      Qt Champions 2022
      wrote on last edited by
      #2

      Did you try downloading the openssl and cross compile for Android. It is easy compile and use it.

      Dheerendra
      @Community Service
      Certified Qt Specialist
      http://www.pthinks.com

      1 Reply Last reply
      0
      • ashajgA ashajg

        Hi

        I am new to QT and want to know how can I get Openssl for android.
        Is there any precompiled Openssl present which i can use??
        I went through this link http://doc.qt.io/qt-5/opensslsupport.html but didn't got much.

        ekkescornerE Offline
        ekkescornerE Offline
        ekkescorner
        Qt Champions 2016
        wrote on last edited by raven-worx
        #3

        @ashajg

        I am new to QT and want to know how can I get Openssl for android.
        perhaps this helps ? https://github.com/ekke/android-openssl-qt
        Is there any precompiled Openssl present which i can use??

        because of security reasons it's not recommended to use openssl pre-compiled

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

        1 Reply Last reply
        2
        • ashajgA Offline
          ashajgA Offline
          ashajg
          wrote on last edited by
          #4

          ok @ekkescorner

          1 Reply Last reply
          0
          • ashajgA Offline
            ashajgA Offline
            ashajg
            wrote on last edited by
            #5

            @dheerendra

            Hi sir

            I tried to search some process to compile openssl for android and got this: http://doc.qt.io/archives/qt-5.5/opensslsupport.html

            I think i need msys and perl for compilation and just need to perform step 3, 4 and 5 using msys.

            1 Reply Last reply
            0
            • ashajgA Offline
              ashajgA Offline
              ashajg
              wrote on last edited by
              #6

              hi
              @dheerendra @ekkescorner

              I am able to create libs using MSYS for openssl 1.0.2p.
              I got libcrypto.so and libssl.so in openssl folder after following the process.
              I linked these libs in my project and used following code to check:

              qDebug()<<"**********************************************************";
              qDebug()<<"SSLSUPPORT"<<QSslSocket::supportsSsl();
              qDebug() << "Run-time Library:\t" << QSslSocket::sslLibraryVersionString();
              qDebug() << "Run-time Library Version:\t" << QSslSocket::sslLibraryVersionNumber();
              qDebug() << "Build-time Library:\t" << QSslSocket::sslLibraryBuildVersionString();
              qDebug()<<"**********************************************************";
              

              and the result was :

              D libuntitled2.so: main.cpp:24 (int main(int, char**)): **********************************************************
              D libuntitled2.so: main.cpp:25 (int main(int, char**)): SSLSUPPORT true
              D libuntitled2.so: main.cpp:26 (int main(int, char**)): Run-time Library: "OpenSSL 1.0.2p 14 Aug 2018"
              D libuntitled2.so: main.cpp:27 (int main(int, char**)): Run-time Library Version: 268443919
              D libuntitled2.so: main.cpp:28 (int main(int, char**)): Build-time Library: "OpenSSL 1.0.2j 26 Sep 2016"
              D libuntitled2.so: main.cpp:29 (int main(int, char**)): **********************************************************
              My question is Why i am getting Build time library as "OpenSSL 1.0.2j 26 Sep 2016" because I linked libraries for "OpenSSL 1.0.2p 14 Aug 2018".

              Second QUESTION is, What is the meaning of this:

              W linker : /data/app/org.qtproject.example.untitled2-2/lib/x86/libQt5Network.so: unsupported flags DT_FLAGS_1=0x81
              W linker : /data/app/org.qtproject.example.untitled2-2/lib/x86/libQt5Qml.so: unsupported flags DT_FLAGS_1=0x81
              W linker : /data/app/org.qtproject.example.untitled2-2/lib/x86/libQt5Gui.so: unsupported flags DT_FLAGS_1=0x81
              W linker : /data/app/org.qtproject.example.untitled2-2/lib/x86/libQt5Quick.so: unsupported flags DT_FLAGS_1=0x81
              W linker : /data/app/org.qtproject.example.untitled2-2/lib/x86/libQt5QuickParticles.so: unsupported flags DT_FLAGS_1=0x81
              W linker : /data/data/org.qtproject.example.untitled2/qt-reserved-files/plugins/platforms/android/libqtforandroid.so: unsupported flags

              Will this create a problem??

              1 Reply Last reply
              0
              • dheerendraD Offline
                dheerendraD Offline
                dheerendra
                Qt Champions 2022
                wrote on last edited by
                #7

                It could be that your Qt is picking up the old library from default location. Just check it.

                Dheerendra
                @Community Service
                Certified Qt Specialist
                http://www.pthinks.com

                1 Reply Last reply
                0
                • ashajgA Offline
                  ashajgA Offline
                  ashajg
                  wrote on last edited by
                  #8

                  @dheerendra

                  Ok Sir.
                  I ll check for that.

                  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