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

Android with Cmake, how to add openssl libs ("Additional Libraries" is not available)



  • Hi,
    I've just updated to QtCreator 4.14.0 on my Debian and it was quite a struggle... (issue with libxcb-util1, the version of Cmake and to update it in my Kits, I finally clone my existing ones.... then with my NDKs)

    Anyway, I managed to compile my projects as before.

    I'm working on a project built with Cmake and I just need to include openssl libraries.
    How can I do that? I know how to do it in a qmake project by including openssl.pri in the pro file but what is the equivalent on QMake?

    In the build screen I can't add additional libs directly within QtCreator :'(
    alt text

    Thanks in advance for the help, I'm sure it's an easy trick in the CMakeLists.txt



  • alright, just needed to add this in the CMakeLists.txt: include(<path/to/android_openssl/CMakeLists.txt) (cf here) and re-run cmake


Log in to reply