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

.profile config for different android architecture



  • in my app, I use an external library, and I have two .so file, one built for arm 32 bit arch, and one for arm 64 bit

    normally, i just build the 32bit apk, since in work with 64 bit as well
    and my .pro file would look like this

    android {
    # the 32 .so file
    ANDROID_EXTRA_LIBS += $$PWD/lib/libopenssl.so
    }

    now, how could i specify the .profile so it can use corresponding .so file for different kit
    something like
    android-armeabi-v7a {
    # the 32 .so file
    ANDROID_EXTRA_LIBS += $$PWD/lib/libopenssl.so
    }
    android-arm64-v8a {
    # the 64 .so file
    ANDROID_EXTRA_LIBS += $$PWD/lib64/libopenssl.so
    }


Log in to reply