* [Buildroot] Problems with pkg-config
@ 2011-03-26 18:42 Allan Nielsen
2011-03-27 19:53 ` Peter Korsgaard
0 siblings, 1 reply; 3+ messages in thread
From: Allan Nielsen @ 2011-03-26 18:42 UTC (permalink / raw)
To: buildroot
Hey
I'am trying to upgrade the xserver in buildroot to version 1.9.4 and
i'am having some small problems. I have not been hacking on buildroot
before, and i'am therefor simply seeking some advices on the right way
to do things.
I have incremented the versions on libX11 and xtrans (among others),
xtrans compiles and installs without a problem, but there seems to
exists some problems with the xtrans.pc file. When I tries to compile
libX11 which depends on xtrans it complains:
configure: error: Package requirements (xproto >= 7.0.13 xextproto
xtrans xcb >= 1.1.92 kbproto inputproto) were not met:
No package 'xtrans' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Because of this message I started look after where the xtrans file is installed:
awn at awn-pc ~/git/buildroot $ find -name xtrans.pc
./output/target/usr/share/pkgconfig/xtrans.pc
./output/build/xlib_xtrans-1.2.6/xtrans.pc
./output/host/usr/x86_64-unknown-linux-gnu/sysroot/usr/share/pkgconfig/xtrans.pc
awn at awn-pc ~/git/buildroot $
The path in sysroot seems to be outside the pkg-config search path:
awn at awn-pc ~/git/buildroot $
/home/awn/git/buildroot/output/host/usr/bin/pkg-config --cflags xtrans
Package xtrans was not found in the pkg-config search path.
Perhaps you should add the directory containing `xtrans.pc'
to the PKG_CONFIG_PATH environment variable
No package 'xtrans' found
awn at awn-pc ~/git/buildroot $
PKG_CONFIG_PATH=./output/host/usr/x86_64-unknown-linux-gnu/sysroot/usr/share/pkgconfig
/home/awn/git/buildroot/output/host/usr/bin/pkg-config --cflags xtrans
-D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT
awn at awn-pc ~/git/buildroot $
So, now to my question: how should I correct this problem? Should
patch/configure xtrans to install the xtrans.pc in
..../sysroot/usr/lib/pkgconfig/ (this is where the other *.pc files
are located). Should I include sysroot/usr/share/pkgconfig in
pkg-configs search path, or something else???
Best regards
Allan W. Nielsen
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] Problems with pkg-config
2011-03-26 18:42 [Buildroot] Problems with pkg-config Allan Nielsen
@ 2011-03-27 19:53 ` Peter Korsgaard
2011-03-28 7:22 ` Thomas Petazzoni
0 siblings, 1 reply; 3+ messages in thread
From: Peter Korsgaard @ 2011-03-27 19:53 UTC (permalink / raw)
To: buildroot
>>>>> "Allan" == Allan Nielsen <a@awn.dk> writes:
Allan> Hey
Hi Allan,
Allan> So, now to my question: how should I correct this problem?
Allan> Should patch/configure xtrans to install the xtrans.pc in
Allan> ..../sysroot/usr/lib/pkgconfig/ (this is where the other *.pc
Allan> files are located). Should I include sysroot/usr/share/pkgconfig
Allan> in pkg-configs search path, or something else???
The right fix is imho to make pkg-config search usr/share/pkgconfig as
well, as that's what upstream pkg-config does by default. I've fixed it
in git (6a86dd9c8e) and dropped the patch we had for xtrans to make it
use usr/lib/pkgconfig instead.
Thanks for letting me know. I wasn't aware some packages were using it
rather than the "standard" usr/lib/pkgconfig.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] Problems with pkg-config
2011-03-27 19:53 ` Peter Korsgaard
@ 2011-03-28 7:22 ` Thomas Petazzoni
0 siblings, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2011-03-28 7:22 UTC (permalink / raw)
To: buildroot
On Sun, 27 Mar 2011 21:53:08 +0200
Peter Korsgaard <jacmet@uclibc.org> wrote:
> The right fix is imho to make pkg-config search usr/share/pkgconfig as
> well, as that's what upstream pkg-config does by default. I've fixed
> it in git (6a86dd9c8e) and dropped the patch we had for xtrans to
> make it use usr/lib/pkgconfig instead.
Agreed. I had a similar problem with some packages looking for udev.pc,
which is looking in usr/share/pkgconfig.
Regards,
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-03-28 7:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-26 18:42 [Buildroot] Problems with pkg-config Allan Nielsen
2011-03-27 19:53 ` Peter Korsgaard
2011-03-28 7:22 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox