[FFmpeg-devel] [PATCH] doc/faq: explain pkg-config basic setup.

Nicolas George george at nsup.org
Tue Dec 23 12:57:45 CET 2014

Le tridi 3 nivôse, an CCXXIII, Michael Niedermayer a écrit :
> i think this is a bit misleading
> because this doesnt result in working pkgconfig for cross compiling
> you just get
> WARNING: /usr/powerpc-linux-gnu/bin/pkg-config not found, library detection may fail.

Right, I had not noticed that configure applies the cross-prefix to
pkg-config too.

> now if you write a /usr/powerpc-linux-gnu/bin/pkg-config wraper
> script then this would set PKG_CONFIG_LIBDIR already
> the faq should explain the need for such wraper script and how to
> write one, or configure should work automatically with the non cross
> pkgconfig. that is unless theres a easier way to get pkg config to
> work for cross compiling.

I have added explanations in the FAQ. Basically, the quickest way is
"--pkg-config=pkg-config" to use the host's pkg-config, and then set

I added to my TODO list a note about automatically detecting that case, but
I do not have a clean cross-compile environment to test extensively yet.


  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-doc-faq-explain-pkg-config-basic-setup.patch
Type: text/x-diff
Size: 1773 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20141223/143e7b58/attachment.bin>

More information about the ffmpeg-devel mailing list