[FFmpeg-devel] [PATCH] Fix pkg-config detection when using a cross-prefix
derek.buitenhuis at gmail.com
Mon Jul 2 22:56:32 CEST 2012
On 02/07/2012 3:47 PM, Kyle Schwarz wrote:
> No one compiles a pkg-config for a cross toolchain. It has a lot of
> circular dependency's and is a pain to compile. Everyone simple finds
> some way to hack the FFmpeg to use the native one. These hacks would not
> be needed if FFmpeg's configure functioned like other package configures
> and had a fallback.
This is a lie and I can think of an exact circumstance this happens.
Stuff like Yocto/Poky and OpenEmbedded DO.
Imagine the following scenario:
I am in an x86_64 eglibc based Linux system. I am using an x86_86
cross-toolchain to generate x86_64 code for systems using uclibc.
It fails to find the cross-pkg-config (which these DO provide), and it
attempts to link to the host's libraries, which output all manner
of confusing and misleading errors.
(And yes it's real: http://chromashift.org/tools/linux/poky-uclibc-x86_64-x86_64-static-toolchain-1.2%2bsnapshot-20120507.tar.xz)
More information about the ffmpeg-devel