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

Compiling a single .cpp-file reads the Qt configuration of all referenced projects

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 3.3.1.1
    • None
    • Windows

    Description

      We have solutions with more than 20 projects. The startup project that creates the .exe has 20+ references to the other projects in the solution. When a single .cpp file is compiled (Ctrl+F7), the Qt configuration for all referenced projects and the project containing the file are loaded. In such a case, reading the configuration takes longer than the compilation step of the individual file. I assume this wasn't the case in older versions of the Qt VS Tools Addin.

      Same Thing if I click “Project Only --> Rebuild Only” on the Startup-Project.

      Compiling "QtWidgetsApplication1.cpp" from the attached test-application produces the following output:

      1>------ Build started: Project: QtWidgetsApplication1, Configuration: Debug x64 ------
      1> Qt/MSBuild: 3.3.1.1
      1> Qt/MSBuild: 3.3.1.1
      1> Qt/MSBuild: 3.3.1.1
      1> Qt/MSBuild: 3.3.1.1
      1> Qt/MSBuild: 3.3.1.1
      1>Reading Qt configuration (D:/Bildverarbeitung/ConfigMgmt/Libs/ExternalLibs/Qt/6.8.0/msvc2022_64/bin/qmake)
      1>Reading Qt configuration (D:/Bildverarbeitung/ConfigMgmt/Libs/ExternalLibs/Qt/6.8.0/msvc2022_64/bin/qmake)
      1>Reading Qt configuration (D:/Bildverarbeitung/ConfigMgmt/Libs/ExternalLibs/Qt/6.8.0/msvc2022_64/bin/qmake)
      1>Reading Qt configuration (D:/Bildverarbeitung/ConfigMgmt/Libs/ExternalLibs/Qt/6.8.0/msvc2022_64/bin/qmake)
      1>Reading Qt configuration (D:/Bildverarbeitung/ConfigMgmt/Libs/ExternalLibs/Qt/6.8.0/msvc2022_64/bin/qmake)
      1> Qt: 6.8.0
      1> Qt: 6.8.0
      1> Qt: 6.8.0
      1> Qt: 6.8.0
      1> Qt: 6.8.0
      1> Qt/MSBuild: 3.3.1.1
      1> Qt: 6.8.0
      1>QtWidgetsApplication1.cpp
      ========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
      ========== Build completed at 21:11 and took 01,830 seconds ==========
       

      Attachments

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

        Activity

          People

            mecfc Miguel Costa
            schrotti Dominik Schrott
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes