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

source files referenced from qrc files might get compiled

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2: Important P2: Important
    • None
    • 5.4.0
    • Build tools: qmake
    • None
    • GNU Make 4.0
      QMake version 3.0 Using Qt version 5.4.2

      If you have files with implicit make rules listed in a qrc file, make is trying to compile those files with a compiler.
      This example has 2 resource files, "resource" and "resouce.c".
      If "resource.c" is newer than "resource" make is trying to compile it, which will not succeed because it does not contain valid C code.

      Step to reproduce:

      1. Download three attachments
      2. Create 2 empty files ("resource.c" has to have newer date)

      touch resource
      touch resource.c
      

      3. qmake && make

      [snip]
      gcc [snip] resource.c -o resource
      [error message]
      

      As real life use case see "qtbase/tests/auto/corelib/io/qdir/android_testdata.qrc" triggering this issue.

        1. main.cpp
          0.1 kB
          Rainer Keller
        2. test.pro
          0.0 kB
          Rainer Keller
        3. test.qrc
          0.1 kB
          Rainer Keller
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            buddenha Oswald Buddenhagen
            rakeller Rainer Keller
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes