Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-105324

Build Qt SDK with OpenSSL / MinGW Makefile Error 2

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 5.15.5
    • Build System, Network
    • None
    • windows 10 x64_86
    • Windows

    Description

      I was trying to build Qt 5.15.5 with OpenSSL support on a Win64 platform using the MinGW64 compiler.

       

      OpenSSL installed with msys64 pacman:

      pacman -S mingw-w64-x86_64-openssl
      

       

      Qt Build configuration:

      OPENSSL_LIBS='-L/mingw64/lib -lssl -lcrypto -lws2_32 -ladvapi32 -luser32' ./configure -static -prefix "/d/Qt/5.15.5/mingw64_1210s" -opensource -confirm-license -debug-and-release -platform win32-g++ -nomake examples -nomake tests -plugin-sql-sqlite -plugin-sql-odbc -qt-zlib -qt-libpng -qt-libjpeg -qt-freetype -qt-pcre -qt-harfbuzz -opengl desktop -skip qtwebengine -openssl-linked -I /mingw64/include
      

      The compiler returned error message "mingw32-make: *** [Makefile] Error 2":

      ...
      access/qnetworkaccessmanager.cpp: In member function 'virtual QNetworkReply* QNetworkAccessManager::createRequest(Operation, const QNetworkRequest&, QIODevice*)':
      access/qnetworkaccessmanager.cpp:1397:43: warning: 'QNetworkRequest::FollowRedirectsAttribute' is deprecated: Use RedirectPolicyAttribute [-Wdeprecated-declarations]
       1397 |         && req.attribute(QNetworkRequest::FollowRedirectsAttribute).isNull()) {
            |                                           ^~~~~~~~~~~~~~~~~~~~~~~~
      In file included from ../../include/QtNetwork/qnetworkrequest.h:1,
                       from access/qnetworkaccessmanager.h:44,
                       from access/qnetworkaccessmanager.cpp:42:
      ../../include/QtNetwork/../../src/network/access/qnetworkrequest.h:97:9: note: declared here
         97 |         FollowRedirectsAttribute Q_DECL_ENUMERATOR_DEPRECATED_X("Use RedirectPolicyAttribute"),
            |         ^~~~~~~~~~~~~~~~~~~~~~~~
      access/qnetworkaccessmanager.cpp:1397:43: warning: 'QNetworkRequest::FollowRedirectsAttribute' is deprecated: Use RedirectPolicyAttribute [-Wdeprecated-declarations]
       1397 |         && req.attribute(QNetworkRequest::FollowRedirectsAttribute).isNull()) {
            |                                           ^~~~~~~~~~~~~~~~~~~~~~~~
      ../../include/QtNetwork/../../src/network/access/qnetworkrequest.h:97:9: note: declared here
         97 |         FollowRedirectsAttribute Q_DECL_ENUMERATOR_DEPRECATED_X("Use RedirectPolicyAttribute"),
            |         ^~~~~~~~~~~~~~~~~~~~~~~~
      ar -rc ../../lib/libQt5Network.a @object_script.libQt5Network.Release
      mingw32-make[4]: Leaving directory 'D:/qt-everywhere-src-5.15.5/qtbase/src/network'
      rm -f ../../lib/libQt5Networkd.a 2>/dev/null
      ar -rc ../../lib/libQt5Networkd.a @object_script.libQt5Networkd.Debug
      mingw32-make[4]: Leaving directory 'D:/qt-everywhere-src-5.15.5/qtbase/src/network'
      mingw32-make[3]: Leaving directory 'D:/qt-everywhere-src-5.15.5/qtbase/src/network'
      mingw32-make[2]: Leaving directory 'D:/qt-everywhere-src-5.15.5/qtbase/src'
      mingw32-make[1]: *** [Makefile:54: sub-src-make_first] Error 2
      mingw32-make[1]: Leaving directory 'D:/qt-everywhere-src-5.15.5/qtbase'
      mingw32-make: *** [Makefile:90: module-qtbase-make_first] Error 2
      
      

      So please Help me to resolve this
      thanks...

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qtbuildsystem Qt Build System Team
            datochan chan dato
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes