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

hardcoded pkg-config settings injected when crosscompiling

    XMLWordPrintable

Details

    Description

      At the head of qtbase/CMakeLists.txt there is a block of code that sets various PKG_CONFIG_* variables in case of crosscompiling. The patch that sets this misread my advise I gave in the CMake bugtracker.

      If you want pkg-config to pick up your environment then you have to set it yourself, e.g. in a toolchain file (as I do). The downstream projects, in this case Qt, should not fiddle with it. It's the responsibility of the caller to set this up, I have to set up things like crosscompilers as well. If I set any of these variables to get things right then Qt will now unconditionally override them, injecting e.g. a totally wrong location for the .pc files. They are in ${sysroot}/usr/lib/pkgconfig for me, which I set up correctly.

      This is nothing that upstream CMake has (or likely will) fix, this is how pkg-config has always worked.

      Attachments

        Issue Links

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

          Activity

            People

              jbornema Joerg Bornemann
              rebemlix Rolf Eike Beer
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes