Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
4.7.4
-
None
-
Windows Vista,
can also be reproduced on Linux when using the win32-msvc2010 spec explicitly and of course only by visual inspection.
Description
Please see the attached example.
- unpack file
- cd mocinclude-bug\subdir
- qmake -spec win32-msvc2010
- nmake
will complain about not knowing how to make ../build/moc/mocinclude.tmp
Reason: Rule for mocinclude.tmp specifies an absolute path (see mocinclude-bug/build.pri) while dependent rules specify a relative path
Solution:
- edit subdir.pro, uncomment "mocinclude.CONFIG *= fix_target"
- nmake qmake
- nmake
Now compiles fine.
I suggest to put "mocinclude.CONFIG += fix_target" into mkspecs/features/moc.prf by default, because it seems to make the dependency and target paths consistent.
Attachments
Issue Links
- is replaced by
-
QTBUG-21350 qt build failure if source and build trees are not siblings
- Closed