Uploaded image for project: 'Qbs ("Cubes")'
  1. Qbs ("Cubes")
  2. QBS-1416

Qbs reports "Duplicate source file" warning in Qt Creator for project group that installs Qt libraries

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 1.12.1
    • Fix Version/s: 1.13.0
    • Component/s: Qt Creator Integration
    • Labels:
      None

      Description

      In my project I have a file called distribute.qbs that installs the Qt libraries alongside my application, for distribution purposes. Since a while, I'm seeing the following warning reported by Qt Creator, since the Qt profile also references the Qt (core) library:

      warning: Duplicate source file '/home/bjorn/Qt/5.9.7/gcc_64/lib/libQt5Core.so.5.9.7'.
      /home/bjorn/projects/tiled/dist/distribute.qbs:53: warning: First occurrence is here.
      /home/bjorn/.config/QtProject/qtcreator/qbs/1.12.1/profiles/qtc_Desktop__46bfd1da/modules/Qt/core/core.qbs:464: warning: Next occurrence is here.

      In core.qbs there is the following snippet involved in the warning:

      Group {
          files: [Qt["core"].libFilePath]
          filesAreTargets: true
          fileTags: ["dynamiclibrary"]
      }

      You can see the contents of my distribute.qbs on GitHub:

      https://github.com/bjorn/tiled/blob/a6ed2ac7c1bf9d704d7033174da6315838bc887a/dist/distribute.qbs#L38-L104

        Attachments

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

          Activity

            People

            Assignee:
            kandeler Christian Kandeler
            Reporter:
            bjorn Thorbjørn Lindeijer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes