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

[REG -> dev] Windows Network: Unity Build broken

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • None
    • 6.10
    • Network
    • None
    • Windows 11
    • Windows
    • a5268131e (dev)

    Description

      I've tried to build from latest dev branch (e72aea90) and got errors about Winsock re-definitions.

      It's caused by unity build structure's reorganization: now the "qt_windows.h" is included before "winsock2.h".

       

      There is a workaround in the "src\network\kernel\qnetworkinterface_win.cpp":

      #define WIN32_LEAN_AND_MEAN 1
      ...
      // Since we need to include winsock2.h, we need to define WIN32_LEAN_AND_MEAN
      // (above) so windows.h won't include winsock.h.
      

       

      But the unity build is affected the "src\network\socket\qabstractsocketengine.cpp" now.

      The configure script is in the QTBUG-122980.

      Attachments

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

        Activity

          People

            manordheim Mårten Nordheim
            nodir.temir Nodir Temirkhodjaev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes