Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt 6.4 Application Works Run From QtCreator but not Standalone (OpenSSL Issue)
Forum Updated to NodeBB v4.3 + New Features

Qt 6.4 Application Works Run From QtCreator but not Standalone (OpenSSL Issue)

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 665 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • aarelovichA Offline
    aarelovichA Offline
    aarelovich
    wrote on last edited by
    #1

    So I just migrated a working application from Qt 6.1.2 to Qt 6.4.2. Pressed play in QtCreator and everthing ran, particularly the connection to a remote server which is done via HTTPS. I use QSslSocket::supportsSsl() to check that everything is ok with SSL and if it's not I close the application. So the fact the application opens means that everything is where it is.

    I do however get this in the QtCreator console:

    qt.tlsbackend.ossl: Failed to load libssl/libcrypto.

    However it does work fine. I have tested.

    Once I have this working I run windeployqt by doing

    PATH/TO/windeployqt --qmldir PATH/TO/qmldir PATH/TO/myapp.exe

    It runs and no errors. But now the application won't run neither from QtCreator (pressing play) nor from double clicking the executable. QtCreator console now throws THIS error:
    qt.network.ssl: No functional TLS backend

    I made sure that the libcrypto and libssl libraries (the same one in the OpenSSL directory installed by Qt Maintainer and in the bin directory of QtCreator) are in the executable's directory.

    But I have no Idea why it is not working anymore. This exact same process worked on Qt 6.1.2 with no issues.

    Any ideas?

    JKSHJ 1 Reply Last reply
    0
    • aarelovichA Offline
      aarelovichA Offline
      aarelovich
      wrote on last edited by
      #2

      UPDATE: So I've been fooling around. And I found the following interesting tidbit. If I delete the QtCore6.dll from the executable directory where I ran the windeployqt, then I can launch the application from QtCreator again. I don't know if this helps anyone help me, but I'm putting it here just in case.

      1 Reply Last reply
      0
      • aarelovichA aarelovich

        So I just migrated a working application from Qt 6.1.2 to Qt 6.4.2. Pressed play in QtCreator and everthing ran, particularly the connection to a remote server which is done via HTTPS. I use QSslSocket::supportsSsl() to check that everything is ok with SSL and if it's not I close the application. So the fact the application opens means that everything is where it is.

        I do however get this in the QtCreator console:

        qt.tlsbackend.ossl: Failed to load libssl/libcrypto.

        However it does work fine. I have tested.

        Once I have this working I run windeployqt by doing

        PATH/TO/windeployqt --qmldir PATH/TO/qmldir PATH/TO/myapp.exe

        It runs and no errors. But now the application won't run neither from QtCreator (pressing play) nor from double clicking the executable. QtCreator console now throws THIS error:
        qt.network.ssl: No functional TLS backend

        I made sure that the libcrypto and libssl libraries (the same one in the OpenSSL directory installed by Qt Maintainer and in the bin directory of QtCreator) are in the executable's directory.

        But I have no Idea why it is not working anymore. This exact same process worked on Qt 6.1.2 with no issues.

        Any ideas?

        JKSHJ Offline
        JKSHJ Offline
        JKSH
        Moderators
        wrote on last edited by
        #3

        @aarelovich said in Qt 6.4 Application Works Run From QtCreator but not Standalone (OpenSSL Issue):

        qt.tlsbackend.ossl: Failed to load libssl/libcrypto.
        However it does work fine. I have tested.

        Well, it failed to load the OpenSSL backend. So it probably loaded the Schannel backend instead.

        qt.network.ssl: No functional TLS backend

        Did it deploy tls/qschannelbackend.dll? (or tls/qschannelbackendd.dll if you're using Debug mode)

        Anyway, to see what DLLs are being used, run your app in Qt Creator without windeployqt first. While it is running, use Process Explorer or ListDLLs to inspect your app.

        Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved