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

Unable to use OpenSSL with my Android project



  • Good morning everybody ! I am in a French-speaking country. I am trying to follow the following tutorial in order to use OpenSSL with my Android project : https://doc.qt.io/qt-5/android-openssl-support.html . The problem is that it seems to me that the commands are for Linux users. I am a Windows user and the commands like ./Configure does not seems to work.

    Is there an easier way to add open ssl support to my Android project? I am very disapointed. Qt tutos use to be clear but i do not understand this one. Can you please give me detailed instructions on how to add openssl to my Android project ? I am a novice.



  • Hi, you should be able to use command prompt (cmd.exe) in Windows.

    Do you have a './Configure' file in your project?, if so, try the following;

    Navigate to your project folder, press and hold the RIGHT shift key in the project folder/window and then right click in the window with your mouse, this should bring up a menu that contains the link 'Open command window here'.

    You should now be able to carry out './Configure' if the configure file exists within your project.



  • No @Markkyboy i have not a ./Configure file. It seems to be q Qt default executable !


  • Lifetime Qt Champion

    @ibia Configure file is the part of OpenSSL source code archive (in the root folder). On Windows you do not call it like "./Configure" but how is shown in INSTALL file:

    on Windows (only pick one of the targets for configuration):
    $ perl Configure { VC-WIN32 | VC-WIN64A | VC-WIN64I | VC-CE }
    $ nmake
    $ nmake test
    $ nmake install
    


  • Do i need to install Perl ? Is yes, how do i do that ?
    Also, nmake does not seem to be installed with my Qt version !


  • Lifetime Qt Champion

    @ibia said in Unable to use OpenSSL with my Android project:

    Is yes, how do i do that ?

    Well, download from https://www.perl.org/get.html and install

    nmake is not part of Qt, but of Visual Studio. Which exact Qt version do you use? MSVC or MinGW?
    Actually you want to build for Android, in this case you need to use what ever is used for Android (Android NDK).



  • @jsulm thank you very much. I am using Qt 5.14.2 with MinGW. do i need to install Qt msvc or do i simply need to install vs code apart from qt ?
    Qt and Qml are interesting but there are many troubles using them ...


Log in to reply