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

PathProbe doesn't look into sysroot

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 1.7.2
    • Configuration Probes
    • None

    Description

      Use of PathProbe to find headers and libraries won't work with cross-compilers because the sysroot is not prepended to the paths.

      Fixing this was as easy as defining a new import like this, but IMHO it should be done by default.

      import qbs
      import qbs.Probes
      
      Probes.PathProbe {
        pathPrefixes: {
          if (qbs.sysroot !== undefined)
            return [qbs.sysroot + "/usr", qbs.sysroot + "/usr/local"];
          return [];
        }
      }

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            plfiorini Pier Luigi Fiorini
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes