mplayer CVS doesn't compile with fontconfig support
Hi all! I'd like to use freetype in mplayer from now on, but it doesn't compile with fontconfig support enabled. 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 \ --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 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' font_load_ft.c:(.text+0x275f): undefined reference to `FcNameParse' font_load_ft.c:(.text+0x2779): undefined reference to `FcConfigSubstitute' font_load_ft.c:(.text+0x2781): undefined reference to `FcDefaultSubstitute' font_load_ft.c:(.text+0x2799): undefined reference to `FcFontMatch' font_load_ft.c:(.text+0x27bb): undefined reference to `FcPatternGetBool' font_load_ft.c:(.text+0x27ce): undefined reference to `FcNameParse' font_load_ft.c:(.text+0x27e8): undefined reference to `FcConfigSubstitute' font_load_ft.c:(.text+0x27f0): undefined reference to `FcDefaultSubstitute' font_load_ft.c:(.text+0x2808): undefined reference to `FcFontMatch' font_load_ft.c:(.text+0x282a): undefined reference to `FcPatternGetString' collect2: ld gab 1 als Ende-Status zurück make: *** [mplayer] Fehler 1 I checked /usr/include/fontconfig/fontconfig.h and the functions (FcInit etc.) are in there. Any idea what might be causing this? Cheers Sebastian -- "When the going gets weird, the weird turn pro." (HST)
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
Dominik 'Rathann' Mierzejewski wrote:
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.
to the original poster: why are you using this terribly long configure line? :) to the point: in mplayer's configure, --enable-* means FORCE. that means, if you say --enable-fontconfig, it will just assume fontconfig is there (even if it is not there). that's why Dominik recommended to remove that part. generally, you should not "--enable" anything. so, remove all the --enable lines, and try again. p.s: mplayer-advusers is probably not the best place to ask such questions. please use mplayer-users in the future. gabor
Hi, On So, Feb 26, 2006 at 09:25:36 +0100, gabor wrote:
Dominik 'Rathann' Mierzejewski wrote:
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.
to the original poster:
why are you using this terribly long configure line? :)
It's just a script I use to retrievie mplayer from CVS :) I don't need a lot of mplayers features so I explicitly disable them.
to the point:
in mplayer's configure, --enable-* means FORCE. that means, if you say --enable-fontconfig, it will just assume fontconfig is there (even if it is not there).
Ah, thank you. Now it compiles fine.
that's why Dominik recommended to remove that part.
What a funny name.
generally, you should not "--enable" anything.
so,
remove all the --enable lines, and try again.
p.s: mplayer-advusers is probably not the best place to ask such questions. please use mplayer-users in the future.
:) At least it worked.
gabor
_______________________________________________ MPlayer-advusers mailing list MPlayer-advusers@mplayerhq.hu http://mplayerhq.hu/mailman/listinfo/mplayer-advusers
Thanks gabor Sebastian -- "When the going gets weird, the weird turn pro." (HST)
that's why Dominik recommended to remove that part.
What a funny name.
Just to clear this up, I didn't mean THE name (Dominik) but the naming of what was written in the first reply as a "recommendation" :) I think it was a rather rude and uncalled for. Cheers S.
generally, you should not "--enable" anything.
so,
remove all the --enable lines, and try again.
p.s: mplayer-advusers is probably not the best place to ask such questions. please use mplayer-users in the future.
:) At least it worked.
gabor
_______________________________________________ MPlayer-advusers mailing list MPlayer-advusers@mplayerhq.hu http://mplayerhq.hu/mailman/listinfo/mplayer-advusers
Thanks gabor
Sebastian -- "When the going gets weird, the weird turn pro." (HST)
_______________________________________________ MPlayer-advusers mailing list MPlayer-advusers@mplayerhq.hu http://mplayerhq.hu/mailman/listinfo/mplayer-advusers
-- "When the going gets weird, the weird turn pro." (HST)
participants (3)
-
Dominik 'Rathann' Mierzejewski -
gabor -
Sebastian