[MPlayer-dev-eng] Freetype linking problem

Jindrich Makovicka makovick at KMLinux.fjfi.cvut.cz
Thu Aug 29 19:01:19 CEST 2002


On Thu, Aug 29, 2002 at 09:57:57AM +0200, Bohdan Horst wrote:
> 
> after --enable-freetype (with freetype-2.1.2):
> 
> gcc -O4 -march=i686 -mcpu=i686 -pipe -ffast-math -fomit-frame-pointer -D_THREAD_SAFE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Ilibmpdemux -Iloader -Ilibvo -I/usr/local/include -I/usr/local/include/freetype2 -I/usr/local/include  -o mplayer mplayer.o mp_msg.o xacodec.o cpudetect.o codec-cfg.o cfgparser.o my_profile.o spudec.o playtree.o playtreeparser.o asxparser.o vobsub.o subreader.o sub_cc.o find_sub.o mixer.o mp-opt-reg.o dll_init.o -Llibvo -lvo  -Llibmpcodecs -lmpcodecs -Lmp3lib -lMP3 -Lliba52 -la52 -Llibmpeg2 -lmpeg2 -Llibavcodec -lavcodec   -Llibmpdemux -lmpdemux  -Linput -linput -Lloader -lloader -Lloader/dshow -lDS_Filter   -laudio  -L/usr/X11R6/lib -lX11 -lXext  -lXt -lmad -lvorbis -logg   -Llibmpdvdkit2 -lmpdvdkit -pthread  -rdynamic -liconv -Lpostproc -lpostproc -Llinux -losdep -ltermcap   -lz  -lpng -lz -ljpeg -lungif  -L/usr/local/lib -lfreetype -lm -L/usr/local/lib -Llibao2 -lao2 -L/usr/X11R6/lib -lX11 -lXext  -lGL -lXxf86dga -lXv -lXxf86vm -lXinerama -lma!
d   -lggi  -L/usr/local/lib -Wl,-rpath,/usr/local/lib -lSDL-1.1 -pthread -lvgagl -lvga -laa
> 
> libvo/libvo.a(font_load_ft.o): In function `read_font_desc':
> font_load_ft.o(.text+0x2146): undefined reference to `FT_Get_First_Char'
> font_load_ft.o(.text+0x2174): undefined reference to `FT_Get_Next_Char'
> gmake: *** [mplayer] ERROR 1

You seem to have freetype2.0 .so library somewhere in /usr/local/lib or /usr/X11R6/lib

> 
> when move freetype lib to earlier pos:
> 49c49
> < COMMON_LIBS = $(CODEC_LIBS) -Llibmpdemux -lmpdemux  -Linput -linput $(LIB_LOADER) $(A_LIBS) $(CSS_LIB) $(ARCH_LIB) -Lpostproc -lpostproc $(DECORE_LIB) -Llinux -losdep $(TERMCAP_LIB)  $(STREAMING_LIB) $(Z_LIB) $(GTK_LIBS) $(PNG_LIB) $(JPEG_LIB) $(GIF_LIB) $(CDPARANOIA_ LIB) $(FREETYPE_LIB) -lm
> ---
> > COMMON_LIBS = $(CODEC_LIBS) $(FREETYPE_LIB) -Llibmpdemux -lmpdemux -Linput -linput $(LIB_LOADER) $(A_LIBS) $(CSS_LIB) $(ARCH_LIB) -Lpostproc -lpostproc $(DECORE_LIB) -Llinux -losdep $(TERMCAP_LIB)  $(STREAMING_LIB) $(Z_LIB) $(GTK_LIBS) $(PNG_LIB) $(JPEG_LIB) $(GIF_LIB) $(CDPARANOIA_LIB) -lm
>
> compile fine and work great :))
> 
> best regards
> 
> -- 
>  / irl:Bohdan 'Nexus' Horst | mailto:nexus at irc.pl | irc:Nexus \
> {---------------------------^----------v----------^------------}
>  \ http://www.physd.amu.edu.pl/~nexus/ | Instytut Fizyki  UAM /
> _______________________________________________
> MPlayer-dev-eng mailing list
> MPlayer-dev-eng at mplayerhq.hu
> http://mplayerhq.hu/mailman/listinfo/mplayer-dev-eng

-- 
Jindrich Makovicka



More information about the MPlayer-dev-eng mailing list