Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
2.4.3, 2.5.1
-
None
-
9a5dde11b957112f1828ca572347e78873dce32c
Description
The code files generated by Qt tools (moc, rcc and uic) are created outside of the $(IntDir) if the path of the input file is somewhere above the project directory.
This seems to be caused by the usage of %(RelativeDir) inside the qt*.props files, as removing it seems to solve the problem. Unfortunately I can't distribute this modification to the other developers in my department, since the files are overwritten at startup.
The attached project is a minimal reconstruction of the error. The header file should be placed accordingly to the path used in the vcxproj.
VS Build output (translated from german):
1>Reading Qt configuration (C:\Qt\Qt5.11.2\5.11.2\msvc2017_64\bin\qmake.exe) 1>moc ..\..\..\..\..\QtDummy\QtDummy.h 1>moc_QtDummy.cpp 1>c1xx : fatal error C1083: File (source) cannot be opened: "..\QtDummy\moc_QtDummy.cpp": No such file or directory 1>The creation of the project "QtApplication.vcxproj" is finished -- ERROR.
Attachments
Issue Links
- duplicates
-
QTVSADDINBUG-783 Moc doesn't respect the relative path to the project directory
- Closed