[CMake] anybody crosscompiling and using pkg_config ?

Alexander Neundorf a.neundorf-work at gmx.net
Sat Jul 19 07:10:13 EDT 2008


On Saturday 19 July 2008, Enrico Scholz wrote:
> Alexander Neundorf <a.neundorf-work at gmx.net>
>
> writes:
> > when crosscompiling, pkg_config shouldn't find packages for the host
> > system, but for the target system.
>
> Host pkgconfig path will *always* be tried by pkgcofig; regardless of
> setting of $PKG_CONFIG_PATH.

I'm using PKG_CONFIG_LIBDIR, which as I understood overrides all other 
directories:
http://lists.debian.org/debian-embedded/2004/06/msg00122.html

> Use a target specific 'pkgconfig' tool (e.g.
> arm-xscale-linux-gnu-pkgconfig) which is build with proper default

And e.g. arm-xscale-linux-gnu-pkgconfig is an executable for the build host, 
e.g. for x86, not intended to be used on the target system, right ?

Alex


More information about the CMake mailing list