[FFmpeg-devel] configure: Prioritize 'sdl2-config'-check

Stephen Hutchinson qyot27 at gmail.com
Thu May 11 14:56:06 EEST 2017


On 5/11/2017 7:43 AM, Reino Wijnsma wrote:
> https://trac.ffmpeg.org/ticket/6377#comment:2:
>> Inadequate for building FFPlay, yes. But perhaps not for other software.
>> Are there any downsides to my proposition?
> 
> I could of course contact the sdl2 developers, but when 'sdl2-config'
> already has the librarylist setup right to build FFPlay, why not just do
> the 'sdl2-config'-check first? Is there are reason why FFMpeg's
> 'configure' does the 'check_pkg_config sdl2'-check first?
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> 

Those libs mentioned as 'missing' in the ticket are not
supposed to be public, since they're MinGW-w64 system libs;
at least here, they *are* in sdl2.pc, under Libs.private.
And the proper way to get pkg-config to recognize that is
to set the --static flag.

IIRC, this should only be a problem when building as static,
and as mentioned above, that means you should be setting
--pkg-config-flags="--static" when configuring FFmpeg.


More information about the ffmpeg-devel mailing list