← Back to team overview

touch-packages team mailing list archive

[Bug 1503832] Re: SDK cross build does not set PKG_CONFIG_PATH properly according to the architecture

 

** Also affects: click (Ubuntu)
   Importance: Undecided
       Status: New

** Changed in: qtcreator-plugin-ubuntu (Ubuntu)
       Status: Incomplete => Triaged

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to click in Ubuntu.
https://bugs.launchpad.net/bugs/1503832

Title:
  SDK cross build does not set PKG_CONFIG_PATH properly according to the
  architecture

Status in click package in Ubuntu:
  New
Status in qtcreator-plugin-ubuntu package in Ubuntu:
  Triaged

Bug description:
  Trying to build a library under click-ubuntu-sdk-15.04-armhf.
  Library requires libpay2-dev to compile.
  I have manually installed the package for armhf on the chroot using the "Maintain" option.

  (click-ubuntu-sdk-15.04-armhf)root@beasty:/home/antti# dpkg-query -L libpay2-dev:armhf
     ...
  /usr/lib/arm-linux-gnueabihf/pkgconfig/pay-2.pc

  (click-ubuntu-sdk-15.04-armhf)root@beasty:/home/antti# pkg-config --debug --exists pay-2
  Cannot open directory '/usr/local/lib/x86_64-linux-gnu/pkgconfig' in package search path: No such file or directory
    ...
  Looking for package 'pay-2'
  Looking for package 'pay-2-uninstalled'

  (click-ubuntu-sdk-15.04-armhf)root@beasty:/home/antti# export PKG_CONFIG_PATH=/usr/lib/arm-linux-gnueabihf/pkgconfig/
  (click-ubuntu-sdk-15.04-armhf)root@beasty:/home/antti# pkg-config --exists pay-2 && echo $?
  0

  
  Because the arch specific pkg-config path is not set, any qmake project that relies on pkg-config to find libraries will fail on qmake run.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/click/+bug/1503832/+subscriptions