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

Cannot use "=" with cpp.includePaths for Cross Compiling Sysroot

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 1.10.0
    • None
    • Linux Mint
      Qt Creator 4.5.0
      Qbs 1.10.0
      Yocto 2.2.1

    Description

      Setting up a cross compiling kit using a sysroot with Qbs is a charm, except that "cpp.includePaths" does not work as expected.
      If you write

      cpp.includePaths: "/usr/include/somelibsheaderdir"

      qbs calls the compiler with

      -I/usr/include/somelibsheaderdir

      If you write

      cpp.includePaths: "=/usr/include/somelibsheaderdir"

      qbs calls the compiler with

      -I/home/username/your/project/source/directory/=/usr/include/somelibsheaderdir

      So there is no way to tell the compiler to append the passed sysroot to the include path (maybe the same with the library paths but I did not tested it yet).

      I would prefer something like "cpp.prependSysroot: true/false" wich automaticly prepends the "=" to the include paths.
      Example:

      cpp.prependSysroot: true
      cpp.includePaths: "/usr/include/somelibsheaderdir"
      

      leads to

      -I=/usr/include/somelibsheaderdir

      Additionally if the include paths have the "=" prefix they should be treated like absolut paths (independent of "cpp.prependSysroot").

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            Psy-Kai Kai Dohmen
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There is 1 open Gerrit change