2015-10-07 18:59:17 |
Antti Kaijanmäki |
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 |
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. |
|