I've been building matplotlib from source for quite a while,
and with no problem once I installed the required libs
into /usr/local (first via the i-Installer, more recently
from source). I'm currently using matplotlib-0.80.
Cutting to the chase: Is it possible to build matplotlib using
Apple's freetype? Motivation/issues:
Recently I needed to install gtk+-2.4 on my Mac (to run gEDA). It
looked easy---several sites describe the process (e.g., the GIMP
site and the ApnaOpus site at apnaopus.var.cc), the usual
series of ./configure-make-make install steps. But it proved
a bit of a trial. After much poking around on the net and
a lot of trial and error, I finally got gtk to install by
removing freetype2 from its various /usr/local locations.
Apparently a conflict between this freetype and Apple's
(under /usr/X11R6/) led to my difficulties (things built fine,
but running gtk-demo would give a Bus error).
Of course, this broke matplotplib, but this was fixed by
reinstalling freetype into /usr/local and rebuilding matplotlib.
Yesterday I tried upgrading to gtk+-2.6 and building pygtk.
I thought I'd try to get it to work *without* removing freetype
from /usr/local. More googling and trial and error led me to
build with these flags:
% setenv CPPFLAGS "-no-cpp-precomp"
% setenv LDFLAGS "-bind_at_load"
% setenv PKG_CONFIG_PATH /usr/local/geda/lib/pkgconfig:/usr/X11R6/lib/pkgconfig:/usr/local/lib/pkgconfig:/usr/lib/pkgconfig
This got gtk to build with freetype left in place; gtk-demo runs
fine this way. However, pygtk won't run. It builds and installs
(I have to manually copy the package and modules to /Library/...),
but I get a bus error on import. I notice when it builds that
it uses -I/usr/X11R6/include/freetype2. So I'm wondering if
a freetype conflict is again the problem. Next I'll try moving
the freetype stuff in /usr/local.
In the meantime---is it possible to build matplotlib using
Apple's freetype? I'm guessing that if I could get rid of
freetype in /usr/local, I'd be able to build gtk and pygtk
as easily as the GIMP and ApnaOpus (etc.) people do....