[FFmpeg-user] How to compile static FFmpeg to a .so file?

Ricardo Zacarias rickyz at streamingglobal.com
Tue Jan 31 16:21:10 EET 2023


Got it. So not static. So if I wanted to have it dynamic, to produce a .so file, I would need '--disable-static' and '--enable-shared' instead. Anything else you could recommend? I replaced those options, but the resulting FFmpeg build is still an executable and is not in .so format.

________________________________
From: ffmpeg-user <ffmpeg-user-bounces at ffmpeg.org> on behalf of Mark Harfouche <mark.harfouche at gmail.com>
Sent: Tuesday, January 31, 2023 5:27:15 AM
To: FFmpeg user questions
Subject: Re: [FFmpeg-user] How to compile static FFmpeg to a .so file?

On linux. static = .a, dynamic = .so

On Mon, Jan 30, 2023 at 1:22 PM Ricardo Zacarias <rickyz at streamingglobal.com>
wrote:

> I am trying to build a static ffmpeg to produce a .so file.
> I was able to build FFmpeg into a Windows dll using this configuration.
>
> ./configure --extra-ldexeflags='-dll' --target-os=win64 --arch=x86_64
> --toolchain=msvc --prefix=/c/ffmpeg/out --enable-static -–disabled-shared
> --enable-gpl --enable-version3 --disable-ffprobe --disable-ffplay
> --disable-doc --enable-libx264
> --extra-ldflags="-LIBPATH:/c/ffmpeg/external/x264/lib/"
> --extra-cflags="-I/c/ffmpeg/external/x264/include/"
>
> I would like to know if there is a way to do the equivalent on Ubuntu
> 22.04 that will result in a .so file.
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
>
_______________________________________________
ffmpeg-user mailing list
ffmpeg-user at ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".


More information about the ffmpeg-user mailing list