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

qmake does not check for duplicate files in .pro file

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.9.1
    • Build tools: qmake
    • None

    Description

      (tested with qmake 3.1)

      Starting point: a .pro file with one .cpp and one .h file listed twice (please refer to QTCREATORBUG-18926):

      • Invoke qmake and make from Qt Creator, i.e. build the project (command lines are stripped of paths)
      • qmake.exe -o Makefile InterlockingConfigurator.pro -spec win32-g++ "CONFIG+=debug" "CONFIG+=qml_debug"
      • mingw32-make -f Makefile.Debug
      • Make complains about duplicate recipes for moc_theclass.cpp and moc_theclass.o
      • Linker complains about duplicate symbols (like ui_theclass.h:81: error: multiple definition of `TheClass::TheClass(QWidget)'*)

      QMake should detect duplicate names and only generate Make rules for one occurrence or should stop with error or warning.

      Attachments

        Activity

          People

            qtbuildsystem Qt Build System Team
            narodahk narodahk
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: