On Thu, Apr 24, 2008 at 9:24 PM, Christopher Fonnesbeck
<[EMAIL PROTECTED]> wrote:

> > I read your post and perhaps I am missing the obvious, but my basic
> > question is: apple provides libpng and freetype with xcode which ships
> > with their computers (an optional install from their cd) and these
> > work fine with MPL, so why should we require an external dependency?
>
>  Really?? So I'm an idiot -- I dont deny it.
>
>  At any rate, I think I have things working with a static build of both
> these libraries.


I may have spoken too quickly -- I forgot that on my system in order
to get the mpl build to find the xcode libpng and freetype libs I had
to install pkgconfig, as I described at

http://ipython.scipy.org/moin/Py4Science/InstallationOSX

with the following note:

    matplotlib depends on libpng and freetype, both of which are
provided by the xcode package in
    /usr/X11R6, so I am going to point the mpl build to that
directory. sys.platform is "darwin", so edit
    setupext.py and add '/usr/X11R6' to the "basedir" dictionary for
the 'darwin' key. You need to install
    pkgcong-0.22 from http://pkgconfig.freedesktop.org/releases/ (just
configure, sudo make install it) so that
    matplotlib can use it to find an properly configure png and
freetype. You will need to set the pkgcong path

     > export PKG_CONFIG_PATH=/usr/X11/lib/pkgconfig

so it is not exactly automatic.  But it does work, in my experience.

JDH

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to