[MPlayer-dev-eng] svn 27184: build fails with fontconfig enabled

sean darcy seandarcy2 at gmail.com
Wed Jul 2 04:08:05 CEST 2008


With fontconfig enabled, the build fails:

cc -o mencoder mencoder.o mp_msg-mencoder.o .......................
..............................
libvo/font_load_ft.o: In function `load_font_ft':
/usr/src/redhat/BUILD/mplayer/libvo/font_load_ft.c:1147: undefined 
reference to `FcInit'
/usr/src/redhat/BUILD/mplayer/libvo/font_load_ft.c:1148: undefined 
reference to `FcNameParse'
..................
libass/ass_fontconfig.o: In function `fontconfig_init':
/usr/src/redhat/BUILD/mplayer/libass/ass_fontconfig.c:416: undefined 
reference to `FcInit'
/usr/src/redhat/BUILD/mplayer/libass/ass_fontconfig.c:419: undefined 
reference to `FcConfigGetCurrent'
libass/ass_fontconfig.o: In function `process_fontdata':
/usr/src/redhat/BUILD/mplayer/libass/ass_fontconfig.c:366: undefined 
reference to `FcConfigGetBlanks'
/usr/src/redhat/BUILD/mplayer/libass/ass_fontconfig.c:366: undefined 
reference to `FcFreeTypeQueryFace'
/usr/src/redhat/BUILD/mplayer/libass/ass_fontconfig.c:373: undefined 
reference to `FcConfigGetFonts'
/usr/src/redhat/BUILD/mplayer/libass/ass_fontconfig.c:380: undefined 
reference to `FcFontSetAdd'
libass/ass_fontconfig.o: In function `fontconfig_init':
/usr/src/redhat/BUILD/mplayer/libass/ass_fontconfig.c:429: undefined 
reference to `FcDirCacheValid'
/usr/src/redhat/BUILD/mplayer/libass/ass_fontconfig.c:464: undefined 
reference to `FcConfigAppFontAddDir'
............
collect2: ld returned 1 exit status
make: *** [mencoder] Error 1

fontconfig is installed and fontconfig.h is in /usr/include/fontconfig. 
Both ass_fontconfig.c and font_load_ft.c build without error:

cc -Wdisabled-optimization -Wno-pointer-sign 
-Wdeclaration-after-statement -I. -O2 -g -m32 -march=prescott 
-mtune=prescott -fasynchronous-unwind-tables -fomit-frame-pointer 
-I/usr/include/fontconfig -D_REENTRANT -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DHAVE_CONFIG_H 
-I/usr/include/fontconfig -I/usr/include/  -I/usr/include/SDL 
-D_REENTRANT -pthread -I/usr/include/kde/artsc -I/usr/include/glib-2.0 
-I/usr/lib/glib-2.0/include   -I/usr/include/cdda 
-I/usr/include/freetype2 -I/usr/include/gtk-2.0 
-I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo 
-I/usr/include/pango-1.0 -I/usr/include/glib-2.0 
-I/usr/lib/glib-2.0/include     -c -o libvo/font_load_ft.o 
libvo/font_load_ft.c

***********

cc -Wdisabled-optimization -Wno-pointer-sign 
-Wdeclaration-after-statement -I. -O2 -g -m32 -march=prescott 
-mtune=prescott -fasynchronous-unwind-tables -fomit-frame-pointer 
-I/usr/include/fontconfig -D_REENTRANT -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DHAVE_CONFIG_H 
-I/usr/include/fontconfig -I/usr/include/  -I/usr/include/SDL 
-D_REENTRANT -pthread -I/usr/include/kde/artsc -I/usr/include/glib-2.0 
-I/usr/lib/glib-2.0/include   -I/usr/include/cdda 
-I/usr/include/freetype2 -I/usr/include/gtk-2.0 
-I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo 
-I/usr/include/pango-1.0 -I/usr/include/glib-2.0 
-I/usr/lib/glib-2.0/include     -c -o libass/ass_fontconfig.o 
libass/ass_fontconfig.c

Puzzled. Any idea what's going on?

sean




More information about the MPlayer-dev-eng mailing list