[FFmpeg-user] ffmpeg static binary with libass enabled

Roger Pack rogerdpack2 at gmail.com
Fri Nov 2 09:26:41 CET 2012

On Fri, Nov 2, 2012 at 1:39 AM, Young Kim <shadowing71 at gmail.com> wrote:

> Hi folks,
> I'm running into bit of trouble trying to compile the latest git build of
> ffmpeg statically with libass enabled. I have built static versions of the
> libraries necessary for this build, but it seems like whenever I enable
> libass it does not work. Here's an example of the commands I have been
> running:
> export LDFLAGS="-L/home/ykim/encodebuild/lib $CFLAGS"
> export CFLAGS="-I/home/ykim/encodebuild/include $LDFLAGS"
> ./configure --prefix=/home/ykim/encodebuild --enable-runtime-cpudetect
> --disable-debug --disable-ffserver --disable-ffplay --disable-ffprobe
> --disable-shared --enable-libfaac --enable-libmp3lame --enable-libx264
> --enable-libxvid --enable-libass --enable-libfreetype --enable-gpl
> --enable-nonfree
> make
> After make, it runs into something along the lines of :
> ...
> ass_fontconfig.c:(.text+0x10a5): undefined reference to `FcConfigDestroy'
> collect2: ld returned 1 exit status
> make: *** [ffmpeg_g] Error 1

When statically building for mingw, I know I have to do this hacky work

$  sed -i 's/-L${libdir} -lfontconfig[^l]*$/-L${libdir} -lfontconfig
-lfreetype -lexpat/' "$PKG_CONFIG_PATH/fontconfig.

which actually might be related...

More information about the ffmpeg-user mailing list