[FFmpeg-soc] libavfilter audio work - qualification task
Stefano Sabatini
stefano.sabatini-lala at poste.it
Thu Apr 8 19:52:43 CEST 2010
On date Thursday 2010-04-08 08:05:02 -0700, S.N. Hemanth Meenakshisundaram encoded:
[...]
> The vf_drawtext filter is almost done but I am having problems
> linking in the freetype libraries. I attempted the attached changes
> to the ffmpeg Makefile but I see the following error :
>
> ffmpeg/libavfilter/libavfilter.a(vf_drawtext.o): In function `draw_text':
> ffmpeg/libavfilter/vf_drawtext.c:422: undefined reference to
> `FT_Get_Kerning'
>
> What am I doing wrong?
>
> Thanks
> Index: Makefile
> ===================================================================
> --- Makefile (revision 22749)
> +++ Makefile (working copy)
> @@ -71,6 +71,9 @@
>
> $(foreach D,$(FFLIBS),$(eval $(call DOSUBDIR,lib$(D))))
>
> +libavfilter/vf_drawtext.o libavfilter/vf_drawtext.d: CFLAGS += $(`freetype-config --cflags`)
> +FF_EXTRALIBS += $(`freetype-config --libs`)
> +
> ffplay_g$(EXESUF): FF_EXTRALIBS += $(SDL_LIBS)
> ffserver_g$(EXESUF): FF_LDFLAGS += $(FFSERVERLDFLAGS)
I believe the right syntax is: $(shell freetype-config --cflags)
anyway this is not the right way to do it, in configure add something
of the kind:
enabled drawtext_filter && check_lib2 freetype2/freetype.h freetype_init -lfreetype
...
drawtext_filter_deps="freetype2_freetype_h"
drawtext_filter_extralibs="-lfreetype"
(maybe the last line is not strictly necessary.)
Regards.
More information about the FFmpeg-soc
mailing list