[FFmpeg-devel] [PATCH] Fix pkg-config detection when using a cross-prefix

Derek Buitenhuis derek.buitenhuis at gmail.com
Mon Jul 2 23:28:21 CEST 2012


On 02/07/2012 5:20 PM, Kyle Schwarz wrote:
> Except in that case you would need to already have a hack to get around 
> FFmpeg's configure if you even wanted to compile FFmpeg. Meaning, for 
> everyone that falls under the "we need some specific pkg-config" 
> category, this patch does not effect them. For the rare case that the 
> native pkg-config will not work with the cross toolchain, another 
> pkg-config can be set.

No? I most certainly HAVE NOT. I don't know what 'hacks' you speak of.

> With the current FFmpeg, you couldn't even compile if a cross prefixed 
> pkg-config is not found.

It is better to fail then silently do something possibly wrong.

> Also, in the example you gave, does that mean that you have a cross 
> prefixed pkg-config built already? If so, then it would use that one by 
> default anyway. This patch is only a fallback, and does not effect 
> anything that already works.

You need to read carefully. I said if it went missing for whatever reason.

- Derek




More information about the ffmpeg-devel mailing list