[MPlayer-advusers] mplayer CVS doesn't compile with fontconfig support

Dominik 'Rathann' Mierzejewski dominik at rangers.eu.org
Sun Feb 26 18:02:21 CET 2006


On Sunday, 26 February 2006 at 15:56, Sebastian wrote:
> Hi all!
> 
> I'd like to use freetype in mplayer from now on, but it doesn't compile
> with fontconfig support enabled.

It does for me.

> These are the versions of freetype and fontconfig I got installed:
> 
> [ebuild   R   ] media-libs/freetype-2.1.10  -bindist -doc +zlib 0 kB
> [ebuild   R   ] media-libs/fontconfig-2.2.3  0 kB
> 
> This is what I use to compile mplayer from CVS:
> 
> ./configure --prefix=/usr \
> --confdir=/usr/share/mplayer --mandir=/usr/share/man \
> --datadir=/usr/share/mplayer --disable-runtime-cpudetection \
> --enable-largefiles --enable-menu --disable-network --disable-ftp \
> --with-x11incdir=/usr/X11R6/include --enable-lirc --disable-lircc \
> --disable-vm --disable-xf86keysym --disable-tv --disable-tv-v4l2 \
> --disable-tv-bsdbt848 --disable-edl --disable-tv-v4l \
> --disable-network --disable-winsock2 --disable-smb --disable-live \
> --disable-dvdread --disable-cdparanoia  --enable-freetype \
                                          ^^^^^^^^^^^^^^^^^
> --enable-fontconfig --disable-unrarlib --disable-enca \
  ^^^^^^^^^^^^^^^^^^^

Remove this and retry.

> --disable-inet6 --disable-ftp --disable-vstream --disable-gif \
> --disable-png --disable-jpeg --disable-liblzo --disable-win32 \
> --disable-tga --enable-xinerama --disable-dga --disable-gl \
> --disable-fbdev --disable-pnm --disable-md5sum --disable-vesa \
> --disable-sdl --disable-ossaudio --disable-esd --disable-mp3lib \
> --disable-internal-matroska --disable-internal-faad --disable-gui \
> --disable-vidix --disable-mencoder --disable-xvid \
> --disable-libmpeg2 --disable-internal-tremor --disable-vorbis \
> --disable-mad --disable-dvb --disable-dvbhead --disable-rtc
> 
> configure says:
> 
> Checking for freetype >= 2.0.9 ... yes
> Checking for fontconfig ... yes

Well, sure it does, you forced it to do so.

> This is what happens:
> 
> make[1]: Leaving directory `/data/sk/src/main/libmenu'
> cc -I../libvo -I../../libvo -I/usr/X11R6/include -fno-PIC -O3
> -march=athlon-xp -pipe -fomit-frame-pointer -mfpmath=sse,387 -ffast-math
> -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -I.
> -I/usr/include/freetype2   -I/usr/X11R6/include   -I./libavutil
> -I./libavcodec   -o mplayer mplayer.o mp_msg.o asxparser.o codec-cfg.o
> cpudetect.o edl.o find_sub.o m_config.o m_option.o m_struct.o
> parser-cfg.o playtree.o playtreeparser.o spudec.o sub_cc.o subreader.o
> vobsub.o  mixer.o parser-mpcmd.o subopt-helper.o  libvo/libvo.a
> libao2/libao2.a libmenu/libmenu.a   libmpcodecs/libmpcodecs.a
> libaf/libaf.a libmpdemux/libmpdemux.a input/libinput.a
> postproc/libswscale.a osdep/libosdep.a -Llibmpdvdkit2 -lmpdvdkit
> libavcodec/libavcodec.a  libavformat/libavformat.a
> libavutil/libavutil.a  libavcodec/libpostproc/libpostproc.a
> -lz  -lasound -ldl -lpthread      -lfreetype -lz -lncurses
> liba52/liba52.a   -lXv   -lXinerama -L/usr/X11R6/lib -lXext -lX11 -lnsl
> -lpthread -lnsl                  -Wl,-z,noexecstack  -llirc_client
> -lpthread -ldl    -lm
> libvo/libvo.a(font_load_ft.o): In function `load_font_ft':
> font_load_ft.c:(.text+0x2751): undefined reference to `FcInit'

-lfontconfig is missing there, so it's no surprise.

[...]
> Any idea what might be causing this?

Yes. You're misunderstanding how MPlayer's configure works.

R.

-- 
MPlayer developer and RPMs maintainer: http://rpm.greysector.net/mplayer/
There should be a science of discontent. People need hard times and oppression
to develop psychic muscles.
	-- from "Collected Sayings of Muad'Dib" by the Princess Irulan




More information about the MPlayer-advusers mailing list