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 Updated to NodeBB v4.3 + New Features

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.
  • PoarthurP Offline
    PoarthurP Offline
    Poarthur
    wrote on 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
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on 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
      • ekkescornerE Offline
        ekkescornerE Offline
        ekkescorner
        Qt Champions 2016
        wrote on 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

        PoarthurP 1 Reply Last reply
        3
        • ekkescornerE ekkescorner

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

          PoarthurP Offline
          PoarthurP Offline
          Poarthur
          wrote on 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