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

cpp.staticLibraries exporting broken in qtcreator 3.4.1

    XMLWordPrintable

Details

    • e2a596864c4ceb2c8e0c3925202270f4e0d9b30a, d69b32061f2cc97892ba1a2f7d851e21f0787a8d

    Description

      After upgrading to QtCreator 3.4.1 my qbs project failed to link - undefined references.
      Before i can successfully build it.

      Simple example of structure

      Application {
          name: "app"
      
         Depends { name: "cpp" }
          Depends { id: qtcore; name: "Qt.core" }
         //....
      
          files: [/*...*/]
      
      
          Depends {name: "lib1"}
          Depends {name: "lib2"}
      }
      

      and then lib1 depends on lib3. And lib3 has such construction:

      Export {
              Depends { name: "cpp" }
              Properties {
                  condition: qbs.targetOS.contains("windows")
                  cpp.staticLibraries: base.concat(["gdi32", "setupapi", "mscms"]);
              }      
          }
      

      I expect that this 3 libraries will be linked during app linking, but now this is not true.

      Any workaround will be appreciated.

      Attachments

        1. min_buggy.7z
          0.7 kB
        2. qt_cr_bug.png
          qt_cr_bug.png
          166 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kandeler Christian Kandeler
            vitaly@qubyx.com Vitaly Bondar
            Votes:
            4 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes