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

qmake : make clean does not rm moc_ and ui_ files

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P3: Somewhat important
    • None
    • 5.4.1
    • Build tools: qmake
    • 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

      Attachments

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

        Activity

          People

            qtbuildsystem Qt Build System Team
            castagne Nicolas Castagne
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes