[MPlayer-users] Mplayer + fontconfig + M$Win
John Brown
johnbrown105 at hotmail.com
Mon Oct 30 17:00:02 CET 2006
Alan wrote:
>Guillaume POIRIER wrote:
>>Hi,
>>
>>http://www.mplayerhq.hu/MPlayer/releases/win32/contrib/MPlayer-MinGW-Howto.txt
>>
>There are no instruction for compile mplayer + fontconfig :(
>
If fontconfig is installed, MPlayer should use it, unless auto-detection
fails.
I eventually compiled fontconfig and MPlayer detected it, but it does not
seem to work. I know nothing about fontconfig, so I do not know why. I did
not write down exactly what I did, but try the following:
1) Download freetype 2.1.8
./configure --enable-static --disable-shared --prefix=/mingw
make
make install
It installs cleanly, I believe.
2) Download libexpat (required by fontconfig. I cannot remember the version.
I do not think it matters.)
./configure --enable-static --disable-shared --prefix=/mingw
make
make install
3) Download fontconfig-2.2.3
./configure --enable-static --disable-shared --prefix=/mingw
make
This is where you will start to have problems.
If you get an error saying GetTempPath is undefined, edit the source file
and change the #ifdef around <windows.h> to make sure that windows.h is
included.
If you get errors of the type:
inflateXXX is undefined
you need to add -lz to the link line in fontconfig.
This reminds me: you need to add the necessary libraries to the .pc files.
So, if freetype2.pc does not show that the libs are -lfreetype -lz, make it
so. Similarly, fontconfig.pc should have libs = -lfontconfig -lexpat
-lfreetype -lz.
After all this, make install will not work, because even though you
configured with --disable-shared, it will still trty to copy
libfontconfig.la (or something similar). What I did was:
make -i -k install
to ignore errors and keep going. This copied whatever could be copied and
seemed to be enough, and perhaps was not even necessary.
MPlayer's configure should now detect freetype2 and fontconfig, but, as I
said before, it does not seem to work for me. I tried:
mplayer -font Arial test.ogm, but I do not see my subtitles, or even the
OSD. I have to copy the font to mplayer/subfont.ttf.
_________________________________________________________________
Stay in touch with old friends and meet new ones with Windows Live Spaces
http://clk.atdmt.com/MSN/go/msnnkwsp0070000001msn/direct/01/?href=http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us
More information about the MPlayer-users
mailing list