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. Building for Android on a Windows host using OpenSSL
Forum Updated to NodeBB v4.3 + New Features

Building for Android on a Windows host using OpenSSL

Scheduled Pinned Locked Moved Solved Mobile and Embedded
4 Posts 2 Posters 649 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.
  • A Offline
    A Offline
    aatwo
    wrote on last edited by
    #1

    Hi. I'm attempting to use the QNetworkAccessManager class to communicate with a REST API but I can't seem to find any working instructions on how to build a Qt Android app on a Windows host with OpenSSL support. I can only find Linux instructions.

    I'd like to avoid moving my development environment over to Linux so any hints, tips or directions would be appreciated greatly.

    Currently building using the 'armeabi-v7a (Clang Qt 5.12.0 for Android ARMv7)' kit.

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

      Hi,

      One possibility could be to just build OpenSSL for Android on a Linux virtual machine and copy it to your Windows machine. Then you can continue to build your application on Windows.

      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
      • A Offline
        A Offline
        aatwo
        wrote on last edited by
        #3

        Thanks for the reply and the great suggestion.

        So in the end I built OpenSSL for android on Linux in a VM and I can now use the shared libraries thatI built (libssl.so and libcrypto.so) when working on Windows using the following in my .pro file:

        ANDROID_EXTRA_LIBS+=$$PWD/openssl/1.0.2q/libcrypto.so
        ANDROID_EXTRA_LIBS+=$$PWD/openssl/1.0.2q/libssl.so
        

        That being said the documentation that Qt provide could use some TLC (http://doc.qt.io/qt-5/android-openssl-support.html). It would be nice if there was a definitive list of known working NDK/android SDK/openSSL versions because it's a bit of a rabbit hole. I also found building for arm64 as described on that page didn't work.

        Either way I have my 32bit armv7 build of OpenSSL so I can work with that for now.

        Thanks again for the suggestion :)

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

          You can get the version used when building Qt using QSslSocket::sslLibraryBuildVersionString.

          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

          • Login

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