← Back to team overview

ubuntu-sdk-bugs team mailing list archive

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

 

Public bug reported:

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.

** Affects: qtcreator-plugin-ubuntu (Ubuntu)
     Importance: Undecided
         Status: New

** Description changed:

  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# 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.

-- 
You received this bug notification because you are a member of Ubuntu
SDK bug tracking, which is subscribed to qtcreator-plugin-ubuntu 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 qtcreator-plugin-ubuntu package in Ubuntu:
  New

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/qtcreator-plugin-ubuntu/+bug/1503832/+subscriptions


Follow ups