Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-65137

Generated .pc files contain wrong prefix when crosscompiling

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.10.0
    • Build System
    • None

    Description

      The generated .pc files contain .../sysroot/usr as prefix, but packages usually only have /usr even when crosscompiling:

      root@devpool21:/tmp/e2/build# pkg-config --variable prefix Qt5Nfc                                                                                                  
      /opt/emlix/test/sysroot/usr 
      root@devpool21:/tmp/e2/build# pkg-config --variable prefix freetype2 
      /usr
      

      The other paths in the file usually refer to ${prefix}, but are always hardcoded. This may make sense for unusual configurations, but I would feel safer if they would refer to prefix when they are inside that directory.

      This is probably also wrong in 5.9.

      Attachments

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

        Activity

          People

            qtbuildsystem Qt Build System Team
            rebemlix Rolf Eike Beer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes