Qt World Summit: Register Today!

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

  • 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?

  • Lifetime Qt Champion

    @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?

  • 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.

    export ANDROID_NDK_HOME="/home/3thdev/android-ndk-r10e"
    export PATH=$ANDROID_NDK_HOME/toolchains/aarch64-linux-android-4.9/prebuilt/linu

    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

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

Log in to reply