Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.8.0 Beta
-
Windows 7, MSVC 2013
-
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
- depends on
-
QTBUG-16904 Q_OBJECT in cpp triggers MSB8017 warning
- Closed
- resulted in
-
QTBUG-57695 [vcxproj] mocables are always rebuilt even if nothing changed
- Closed