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. unable to crosscompile openssl 1.1.1c for android (api 28) arm 64 bits
Forum Updated to NodeBB v4.3 + New Features

unable to crosscompile openssl 1.1.1c for android (api 28) arm 64 bits

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
4 Posts 3 Posters 702 Views
  • 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.
  • S Offline
    S Offline
    sombriks
    wrote on last edited by
    #1

    hello everyone,

    anyone else facing issues trying to compile openssl for qt projects targeting android 64 bits?

    i've seen a few tutorials but no luck so far.

    anyone cross-compiled it successfully?

    If so, which qt version and android sdk/ndk versions should i use?

    jsulmJ 1 Reply Last reply
    0
    • S sombriks

      hello everyone,

      anyone else facing issues trying to compile openssl for qt projects targeting android 64 bits?

      i've seen a few tutorials but no luck so far.

      anyone cross-compiled it successfully?

      If so, which qt version and android sdk/ndk versions should i use?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @sombriks You don't need Qt to cross compile OpenSSL. You should use same NDK you're using for your Qt projects. What exact issues do you have?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • H Offline
        H Offline
        hjpriester1967
        wrote on last edited by
        #3

        I have not tried openssl 1.1.1c.
        I had problem with using NDK 19 r2 and openssl 1.1.1b

        I used NDK 10e for compiling openssl 1.1.1b

        I used the following script below to configure/compile the lib. For the Qt android project I used NDK 19 and SDK 28.

        #!/bin/sh
        export ANDROID_NDK_HOME="/home/3thdev/android-ndk-r10e"
        export PATH=$ANDROID_NDK_HOME/toolchains/aarch64-linux-android-4.9/prebuilt/linu
        x-x86_64/bin:$PATH
        CurDir=pwd

        Options for configure/compiling OpenSSL

        Options="shared no-ssl3 no-comp no-hw no-engine"
        ./Configure $Options --prefix=$CurDir/runtime --openssldir=$CurDir/runtime
        android-arm64 -D__ANDROID_API__=21
        make SHLIB_VERSION_NUMBER= SHLIB_EXT=.so

        1 Reply Last reply
        0
        • H Offline
          H Offline
          hjpriester1967
          wrote on last edited by
          #4

          I see my script is a bit message up. Anyway it is readable.

          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