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. Unknown module(s) in QT: openssl-linked
QtWS25 Last Chance

Unknown module(s) in QT: openssl-linked

Scheduled Pinned Locked Moved Unsolved General and Desktop
networksslopenssl
6 Posts 3 Posters 537 Views
  • 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.
  • T Offline
    T Offline
    TheFlyingMooseMan
    wrote on 6 Feb 2024, 07:12 last edited by
    #1

    First line in my .pro file:

    QT       += core gui widgets sql xml network webenginewidgets multimedia httpserver openssl-linked
    

    Qt Creator: 12.0.1
    Qt: 6.6.0
    OS: macos sonoma 14.0

    I figured out that SSL may be an issue when my http://... network request came through, but my https://... requests did not.

    Anything I should look at, compile, change...?
    Feedback is much appreciated!

    Roy

    S 1 Reply Last reply 6 Feb 2024, 07:15
    0
    • T TheFlyingMooseMan
      6 Feb 2024, 07:12

      First line in my .pro file:

      QT       += core gui widgets sql xml network webenginewidgets multimedia httpserver openssl-linked
      

      Qt Creator: 12.0.1
      Qt: 6.6.0
      OS: macos sonoma 14.0

      I figured out that SSL may be an issue when my http://... network request came through, but my https://... requests did not.

      Anything I should look at, compile, change...?
      Feedback is much appreciated!

      Roy

      S Online
      S Online
      sierdzio
      Moderators
      wrote on 6 Feb 2024, 07:15 last edited by
      #2

      @TheFlyingMooseMan said in Unknown module(s) in QT: openssl-linked:

      openssl-linked

      This is not a Qt module so qmake is right in rejecting it.

      I think on macOS Qt uses Apple's secure libraries by default so it should "just work". If you want to force using OpenSSL, you need to download / compile OpenSSL and link it to your project (either at runtime using LD_LIBRARY_PATH or by rpath).

      (Z(:^

      T 1 Reply Last reply 6 Feb 2024, 16:46
      1
      • S sierdzio
        6 Feb 2024, 07:15

        @TheFlyingMooseMan said in Unknown module(s) in QT: openssl-linked:

        openssl-linked

        This is not a Qt module so qmake is right in rejecting it.

        I think on macOS Qt uses Apple's secure libraries by default so it should "just work". If you want to force using OpenSSL, you need to download / compile OpenSSL and link it to your project (either at runtime using LD_LIBRARY_PATH or by rpath).

        T Offline
        T Offline
        TheFlyingMooseMan
        wrote on 6 Feb 2024, 16:46 last edited by
        #3

        @sierdzio How do I make sure that this is working?

        I have the following code to send the network request:

        		QNetworkAccessManager* n=new QNetworkAccessManager(this);
        		connect(n, SIGNAL(finished(QNetworkReply *)),
        				this, SLOT(handleImageDataNetwork(QNetworkReply*)));
        
        		n->get(QNetworkRequest(QUrl(urlString)));
        		return;
        

        And the following code to process the network reply:

            if(r->error()==QNetworkReply::NoError)
            {
                if(r->open(QIODeviceBase::ReadOnly))
                {
                    qDebug() << SB_DEBUG_INFO << r->bytesAvailable();
                    QByteArray a=r->readAll();
                    qDebug() << SB_DEBUG_INFO << a.length();
                    if(a.length()>0)
                    {
                        qDebug() << SB_DEBUG_INFO;
                        QPixmap image;
        
                        //	Store in cache
                        image.loadFromData(a);
                        _storeInCache(&a);
                        emit imageDataReady(image);
                    }
                }
            }
        

        Running will yield the following output:

        0x1e19bd300 "08:45:53" ../app/ExternalData.cpp handleImageDataNetwork 367 bytesAvailable: 0
        0x1e19bd300 "08:45:53" ../app/ExternalData.cpp handleImageDataNetwork 369 length: 0
        

        Anything I missed?

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 6 Feb 2024, 20:07 last edited by
          #4

          Hi,

          Are you in control of the server ?
          You can also use Wireshark to analyze the traffic you have.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          T 1 Reply Last reply 7 Feb 2024, 02:04
          0
          • S SGaist
            6 Feb 2024, 20:07

            Hi,

            Are you in control of the server ?
            You can also use Wireshark to analyze the traffic you have.

            T Offline
            T Offline
            TheFlyingMooseMan
            wrote on 7 Feb 2024, 02:04 last edited by
            #5

            @SGaist Not in control of the server, but I was able to confirm that data was sent back from the server using Wireshark (thanks for the suggestion).

            T 1 Reply Last reply 7 Feb 2024, 17:02
            0
            • T TheFlyingMooseMan
              7 Feb 2024, 02:04

              @SGaist Not in control of the server, but I was able to confirm that data was sent back from the server using Wireshark (thanks for the suggestion).

              T Offline
              T Offline
              TheFlyingMooseMan
              wrote on 7 Feb 2024, 17:02 last edited by
              #6

              Oh well. I am calling wget to get things accomplished. Nice work around that also takes care of redirects and all that.

              1 Reply Last reply
              0

              6/6

              7 Feb 2024, 17:02

              • Login

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