Details
-
Bug
-
Resolution: Incomplete
-
P3: Somewhat important
-
None
-
5.4.1
-
None
-
Linux x86_64 (found on all of our machines)
Mac OS X.9
Probably also on X.10
Description
qmake make make clean
fails removing (some of) the generated moc_.cpp and ui_.h files.
This is due to a bug in qmake's Makefile generation process.
In my Makefile.Release file,
more precisely in the compiler_moc_header_clean target of this Makefile,
The paths before in the moc_*.cpp are incorrect : mission "../../" and missing spaces.
Example :
compiler_moc_header_clean: -$(DEL_FILE)bin/moc_Widget1.cppbin/moc_Widget2t.cppbin/moc_Widget3.cpp
==> should be :
compiler_moc_header_clean: -$(DEL_FILE) ../../bin/moc_Widget1.cppbin/moc_Widget2t.cpp ../../bin/moc_Widget3.cpp
A similar problem occurs with the ui_*.h files.
The attached sample code demonstrates the problem on ALL the Mac OS and Linux machine we tested with Qt5.4 :
Linux Debian 3.2.65-1 X_86_64
Linux Ubuntu
Mac OS X.9