Uploaded image for project: 'Qt Visual Studio Tools'
  1. Qt Visual Studio Tools
  2. QTVSADDINBUG-951

Can't build QT6 WebEngine example

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 2.7.2 (rev.02)
    • Fix Version/s: 2.9.0, 2.9.1
    • Component/s: Build-time integration
    • Labels:
      None
    • Environment:
      Visual Studio 2019, Windows 11
    • Platform/s:
      Windows
    • Commits:
      0c9776a4d1 (qt-labs/vstools/dev)

      Description

      I just installed Qt 6.2.2 and attempted to build the cookiebrowser example (copied outside the QT source tree), using the VS extension in VS2019 to import the .pro file. This is the output:

      Build started...
      1>------ Build started: Project: cookiebrowser, Configuration: Debug x64 ------
      1>Reading Qt configuration (C:/Qt/6.2.2/msvc2019_64/bin/qmake)
      1>cookiebrowser.vcxproj : error : ERROR running qmake
      1>cookiebrowser.vcxproj : error : qmake: (C:/Qt/6.2.2/msvc2019_64/bin/qmake)
      1>cookiebrowser.vcxproj : error : qmake: $PWD=C:\Users\Noah\source\repos\cookiebrowser\debug\qmake\temp
      1>cookiebrowser.vcxproj : error : qmake: Project ERROR: Unknown module(s) in QT: webengine
      1>cookiebrowser.vcxproj : error : qmake: Error creating Makefile
      1>cookiebrowser.vcxproj : error :
      1>Done building project "cookiebrowser.vcxproj" – FAILED.
      ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

       

      The same error appears with the 2.8.0 preview in VS2022.

      I assume this is to do with modules being renamed from Qt 5.

      I will note this a popup appears with this text when importing the .pro file, though I suspect it is an unrelated defect:
      ---------------------------
      Qt VS Tools
      ---------------------------
      Warning:
      qmake has generated a .vcproj file, but it needs to be converted.
      To do this you must open the .vcproj file manually.
      (Reason: qmake in Qt3 does not support generation of Visual Studio 2005 .vcproj files)
      ---------------------------
      OK
      ---------------------------

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              heimrich Karsten Heimrich
              Reporter:
              noah Noah Hamerslough
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes