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

PathProbe doesn't look into sysroot

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Invalid
    • Affects Version/s: 1.7.2
    • Fix Version/s: None
    • Component/s: Configuration Probes
    • Labels:
      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

            Assignee:
            kandeler Christian Kandeler
            Reporter:
            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