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

pkg-config-wrapper doesn't search correctly from sysroot

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Not Evaluated Not Evaluated
    • 5.6.0 RC
    • 5.6.0 Alpha
    • WebEngine
    • None

      pkg-config-wrapper sets PKG_CONFIG_PATH incorrectly when cross compiling for linux and fails to find .pc files from the sysroot

      using python: /usr/bin/python version: 2.7.6
      Using external chromium sources specified in git config qtwebengine.chromiumsrcdir: /home/sapiippo/development/build/sabre/qtwebengine/src/3rdparty/chromium
      Using extra options found in /home/sapiippo/development/build/sabre/qtwebengine/src/core/qtwebengine_extras.gypi
      Updating projects from gyp files...
      Using external chromium sources specified in git config qtwebengine.chromiumsrcdir: /home/sapiippo/development/build/sabre/qtwebengine/src/3rdparty/chromium
      Package fontconfig was not found in the pkg-config search path.
      Perhaps you should add the directory containing `fontconfig.pc'
      to the PKG_CONFIG_PATH environment variable
      No package 'fontconfig' found
      gyp: Call to './pkg-config-wrapper "/home/sapiippo/development/build/sabre/toolchain/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi" "arm" "/home/sapiippo/development/build/sabre/toolchain/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/lib" --cflags fontconfig' returned exit status 1.
      Project ERROR: -- running gyp_qtwebengine failed --
      

      actual pkg-config call is made as

      PKG_CONFIG_PATH=/home/sapiippo/development/build/sabre/toolchain/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr//home/sapiippo/development/build/sabre/toolchain/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/lib/pkgconfig:/home/sapiippo/development/build/sabre/toolchain/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/share/pkgconfig pkg-config --cflags fontconfig
      

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

            abecsi Andras Becsi
            sapiippo Samuli Piippo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes