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

'No rule to make target `main.o' ' when using wildcards with qmake SOURCES variable

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 4.0.0
    • Build tools: qmake
    • None
    • Linux x64, Qt 5.1.0 x64

    Description

      Create simple hello world application. Move main.cpp to src/main.cpp.
      Add SOURCES += src/*.cpp to .pro file.
      Try build main.cpp file - error: No rule to make target `main.o'. Stop.
      Try build project - error: No rule to make target `Src/*.cpp', needed by `*.o'. Stop.

      SOURCES += src/main.cpp - builds ok.

      Temporal workaround would be appreciated. Not using wildcards is not a case.

      Attachments

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

        Activity

          People

            dt Daniel Teske
            shiftz Andrew Shevchenko
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes