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

    • Bug
    • Resolution: Done
    • P2: Important
    • 1.13.0
    • 1.12.1
    • Qt Creator Integration
    • None
    • Linux/X11
    • 7b5349d182bcb4c9d7a3d1501768b91c9fa93fe9 (qbs/qbs/1.12)

    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

        For Gerrit Dashboard: QBS-1416
        # Subject Branch Project Status CR V

        Activity

          People

            kandeler Christian Kandeler
            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