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. Compile OpenSSL for Android
Forum Update on Tuesday, May 27th 2025

Compile OpenSSL for Android

Scheduled Pinned Locked Moved Solved Mobile and Embedded
4 Posts 3 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.
  • P Offline
    P Offline
    Poarthur
    wrote on 11 May 2019, 00:01 last edited by
    #1

    When I set a source properties into an QML Image as an https URL and run it on an Android devise I have an error:

    QML Image: TLS initialization failed
    

    The kit by default is Android for armeabi-v7a (Clang Qt 5.12.0 for Android ARMv7). But on my GNU\Linux OS it works properly. I thought that the problem was in the OpenSSL library and decided to compile it by this instruction.
    I've set _ANDROID_ARCH=arch-arm and others options to the correct value (I hope) but when I launched make the gcc Linker catch the error:

    cannot find crtbegin_so.o
    

    I've created a link to this file through the
    ln -s /home/usrname/Android/Sdk/ndk-bundle/platforms/android-28/arch-arm/usr/lib/crtbegin_so.o
    And now I have the error

    crtbegin_so.o: error adding symbols: file in wrong format
    

    I'v been trying other files 32 and 64 bits and another OpenSSL versions (openssl-1.0.2r and openssl-1.1.0j) and even changed compiler into makefile to the clang but have the same error.
    Anyone can help with this issue?
    Thanks a lot

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 11 May 2019, 07:41 last edited by
      #2

      Hi and welcome to devnet,

      You can try @ekkescorner helper script that can be found here.

      Hope it helps

      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
      • E Offline
        E Offline
        ekkescorner
        Qt Champions 2016
        wrote on 11 May 2019, 16:07 last edited by
        #3

        or try this fork of my scripts for more platforms: https://github.com/akontsevich/openssl-android-build

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

        P 1 Reply Last reply 19 May 2019, 13:38
        3
        • E ekkescorner
          11 May 2019, 16:07

          or try this fork of my scripts for more platforms: https://github.com/akontsevich/openssl-android-build

          P Offline
          P Offline
          Poarthur
          wrote on 19 May 2019, 13:38 last edited by
          #4

          @ekkescorner Tank you so much!
          P.S. By the way, Build steps by GCC doesn't work properly it runs clang as I see
          (clang: error: unknown argument: '-mandroid')
          But the clang script works fine
          Thanks again.

          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