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

Can't Compile QtHttpServer with Qt 6.0.0

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 6.0.0
    • Fix Version/s: None
    • Component/s: Network: HTTP
    • Labels:
      None
    • Platform/s:
      Windows
    • Commits:
      51734cd595f7d6fa0eb2ca3436a19d23ed8859dc (qt-extensions/qthttpserver/dev)

      Description

      Hello,

      I'm trying to build QtHttpServer (from https://codereview.qt-project.org/qt-extensions/qthttpserver) with Qt 6.0.0 (using CMake), and I'm getting the following errors:

      C:\qthttpserver\src\httpserver\qhttpserverfutureresponse.h(120): error C2039: 'isCanceled': is not a member of 'QtConcurrent::RunFunctionTask<QHttpServerResponse>'
       C:\qthttpserver\src\httpserver\qhttpserverfutureresponse.h(115): note: see declaration of 'QtConcurrent::RunFunctionTask<QHttpServerResponse>'
       C:\qthttpserver\src\httpserver\qhttpserverfutureresponse.h(121): error C2039: 'reportFinished': is not a member of 'QtConcurrent::RunFunctionTask<QHttpServerResponse>'
       C:\qthttpserver\src\httpserver\qhttpserverfutureresponse.h(115): note: see declaration of 'QtConcurrent::RunFunctionTask<QHttpServerResponse>'
       C:\qthttpserver\src\httpserver\qhttpserverfutureresponse.h(135): error C2039: 'reportAndMoveResult': is not a member of 'QtConcurrent::RunFunctionTask<QHttpServerResponse>'
       C:\qthttpserver\src\httpserver\qhttpserverfutureresponse.h(115): note: see declaration of 'QtConcurrent::RunFunctionTask<QHttpServerResponse>'
       C:\qthttpserver\src\httpserver\qhttpserverfutureresponse.h(136): error C2039: 'reportFinished': is not a member of 'QtConcurrent::RunFunctionTask<QHttpServerResponse>'
       C:\qthttpserver\src\httpserver\qhttpserverfutureresponse.h(115): note: see declaration of 'QtConcurrent::RunFunctionTask<QHttpServerResponse>'

      Compiling with Qt5 works fine. Is there ongoing work to make this compatible with Qt6, or am I doing something wrong?

        Attachments

        For Gerrit Dashboard: QTBUG-89381
        # Subject Branch Project Status CR V

          Activity

            People

            Assignee:
            manordheim Mårten Nordheim
            Reporter:
            mattcwill Matthew Williams
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes