[MPlayer-users] Re: zlib and fontconfig

John Brown johnbrown105 at hotmail.com
Fri Nov 3 20:11:58 CET 2006




>Nicholas Schell wrote:
>
>Reimar Döffinger wrote:
>>please try attached patch.
>>
>>Greetings,
>>Reimar Döffinger
>
>Thanks the patch works perfectly.
>
>John Brown wrote:
>>MPlayer (and every program that depends on freetype, fontconfig, etc.) 
>>gets
>>this information from pkg-config scripts,
<snip>
>
>In my MSYS environment pkg-config is already set up correctly. Example
>my freetype2.pc already has -lz added all on its own, I don't need to
>edit anything
>
<snip>
>It might just be that it is not setup correctly on your system, but on
>mine it is. Also even though pkg-config is not used, while fontconfig
>is building it has no issues noticing that freetype is also dependent
>on zlib and adds -lz. The problems you are mentioning seem to be your
>own and unrelated to what I'm doing.

I suppose so.

As far as I can understand the
>problem was in fact the method in which mplayer's configure looked for
>fontconfig and its dependent libs because pkg-config was last in the
>elifs. I am guessing that means something already made the test true
>before it could even attempt to use pkg-config.
>
>>Editing the source should not be necessary. fontconfig's configure script
>>has a parameter --with-confdir=DIR. I have not tried it myself, but see if
>>it works for you.
>
>That option only affects where fonts.conf is installed on the system,
>it does not change the behavior of where fontconfig expects to find
>it.

OK, but that must be a bug. What could the authors of fontconfig
hope to achieve by installing fonts.conf in another directory
but not looking for it there?

>For shared libfontconfig builds there is a predefined location to
>search for fonts.conf which is "etc/fonts" and if you edit that
>portion of the source you can change where the shared binary will look
>for it. --with-conf-dir does not effect any of that except where 'make
>install' puts fonts.conf when you finish compiling fontconfig.
>
>As to this fonts.conf business, after having played with a static
>fontconfig mplayer build awhile longer now the issue seems to grow
>deeper. When you build fontconfig as static it hardcodes the _entire_
>fonts.conf path into the lib. As on my system it only looks for
>fonts.conf at "C:\msys\1.0\mingw\etc\fonts\fonts.conf" the default
>install location (which is the only thing --with-conf-dir does, change
>the installation path). Which means you can't really distribute a
>static fontconfig build to other people :(. Gahh this is evil.
>

_________________________________________________________________
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