Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

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.

    #!/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



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


Log in to reply