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

[Windows][REG 5.7.x->5.8.0] When building a Qt application via Visual Studio with the vcxproj file generated from qmake the build may fail

    XMLWordPrintable

    Details

    • Commits:
      dcd2f8295179170d6459edcb06ff9bd339748de6

      Description

      When building a Qt application via Visual Studio with the vcxproj file generated from qmake then it will warn about circular dependencies like:

      1>------ Build started: Project: application, Configuration: Debug Win32 ------
      1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(170,5): warning MSB8017: A circular dependency has been detected while executing custom build commands for item "mainwindow.h". This may cause incremental build to work incorrectly.
      1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(170,5): warning MSB8017: A circular dependency has been detected while executing custom build commands for item ".moc\debug\moc_predefs.h". This may cause incremental build to work incorrectly.
      1>  RCC application.qrc
      1>  MOC mainwindow.h
      1>CUSTOMBUILD : warning : Failed to resolve include ".moc/debug/moc_predefs.h" for moc file mainwindow.h
      1>  cl
      1>  main.cpp
      1>  mainwindow.cpp
      1>  moc_mainwindow.cpp
      1>  qrc_application.cpp
      1>  Generating Code...
      1>  application.vcxproj -> d:\dev\qt5-dev\qtbase\examples\widgets\mainwindows\application\debug\application.exe
      ========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
      

      This happens with any Qt example.

      Amendment: This is not just about the warning. The build may actually fail. See comments.

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              jbornema Joerg Bornemann
              Reporter:
              andysh Andy Shaw
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes