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

Bug #1503832 reported by Antti Kaijanmäki
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
click (Ubuntu)
Confirmed
Undecided
Unassigned
qtcreator-plugin-ubuntu (Ubuntu)
Triaged
Undecided
Unassigned

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.

description: updated
Revision history for this message
Benjamin Zeller (zeller-benjamin) wrote :

Shouldn't that be done by click automatically? I do not think the SDK IDE should take care about setting environment variables to make the click chroots work.
Because then it would break when you want to build manuallly.

Changed in qtcreator-plugin-ubuntu (Ubuntu):
status: New → Incomplete
Changed in qtcreator-plugin-ubuntu (Ubuntu):
status: Incomplete → Triaged
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in click (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.