[FFmpeg-user] ffmpeg static binary with libass enabled

Roger Pack rogerdpack2 at gmail.com
Fri Nov 2 22:39:43 CET 2012


On Fri, Nov 2, 2012 at 12:48 PM, Young Kim <shadowing71 at gmail.com> wrote:

> On Friday, November 2, 2012 at 2:04 AM, Roger Pack wrote:
> > > > $ sed -i 's/-L${libdir} -lfontconfig[^l]*$/-L${libdir} -lfontconfig
> > > > -lfreetype -lexpat/' "$PKG_CONFIG_PATH/fontconfig.pc"
> > > >
> > > > basically fontconfig (for some bizarre reason) expects you to call
> > > > pkg-config --static --libs fontconfig (FFmpeg calls it like
> pkg-config
> > > > --libs--which doesn't include everything needed for static). I had
> > > > some chatting here on the mailing list and with the fontconfig
> > > > people--we didn't reach a concensus as to who was wrong here :)
> > > >
> > > > So that hack adds some dependencies to the fontconfig "pkg config"
> > > > file so that ffmpeg picks them up.
> > > > HTH.
> > > > -r
> > > >
> > >
> > >
> > > Thanks for the clarification. Just to make sure, where is this line
> supposed
> > > to be in? Is it in the configuration file or executed in the command
> line?
> > >
> >
> >
> > command line. and you may need to modify it to fit your environment
> > (of course). the "sed" command does some text find and replace,
> > basically...
> > ___________
> >
> >
>
> I'm still receiving the same errors. Can you elaborate into detail what
> steps you go through to statically compile ffmpeg with libass?
>
>

Try adding

--extra-libs='-lfontconfig -lfreetype -lexpat'
that might be enough.


More information about the ffmpeg-user mailing list