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.
_______________________________________________
FFmpeg-soc mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-soc

Reply via email to