[FFmpeg-user] Building ffmpeg - pkgconfig, again

Reino Wijnsma rwijnsma at xs4all.nl
Sun Dec 2 01:37:54 EET 2018


On 1-12-2018 13:53, darkmoon at frontier.com wrote:
> On Sat, 1 Dec 2018 12:08:36 +0100, Moritz Barsnick <barsnick at gmx.net> wrote:
>> I can tell that the linker flag "-lm" seems to be missing.
>>
>> You information is a bit sparse. Can you show us your complete
>> configure command line as well please?
>
> ../ffmpeg/configure --enable-gpl --enable-version3 --disable-podpages --enable-gnutls
> --enable-libx264 --enable-gmp --enable-libopus --enable-libmp3lame --enable-libtheora
> --enable-libvorbis
>
> [...]
>> Possibly, you only built a static libopus,
>
> Yes. I built all libs static only, because I am building only the static version of ffmpeg.
$ pkg-config --libs opus
-L/cygdrive/[...]/i686-w64-mingw32/lib -lopus

$ pkg-config *--static* --libs opus
-L/cygdrive/[...]/i686-w64-mingw32/lib -lopus *-lm*

That's why I would recommend:
../ffmpeg/configure *--pkg-config-flags=--static* --enable-gpl --enable-version3
--disable-podpages --enable-gnutls --enable-libx264 --enable-gmp --enable-libopus
--enable-libmp3lame --enable-libtheora --enable-libvorbis

-- Reino


More information about the ffmpeg-user mailing list