I posted a note here the other day about a matplotlib binary. I've discovered a problem with it. Apparently, it has linked against the libfreetype in /usr/X11. That means it will work fine on a system with Apple's X11 installed (like mine or the first system I tested it on).
So, the question remains: How to I get distutils to statically link selected libs? Bob had suggested:
"""Make sure you don't have libpng.dylib or libfreetype.dylib sitting around on your link paths...
Build them like this:
./configure --disable-shared --enable static
Make sure you only have libpng.a and libfreetype.a on your link paths. It will link statically.
However, that doesn't seem to work if I have libfreetype.dylib somewhere standard, and I certainly don't want to remove it! (Maybe I could temporarily, but that's hardly the robust solution I'm looking for)
By the way, it would also be good to get this to work with TK and/or GTK. Has anyone done that successfully that would like to help out with this?
Also, as far as PyGTK is concerned. Can you run it without running Fink? That's the only way I've seen it done. If it is a Fink only option, then this is moot, as I'm looking for a Fink free approach, and someone else has put together a fink matplotlib package.
By the way the package, as it stands, can be found at:
thanks to Bob Ippolito
Christopher Barker, Ph.D.
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception