[Pythonmac-SIG] matplotlib OS-X binary problems.

Chris Barker Chris.Barker at noaa.gov
Fri Feb 4 01:07:06 CET 2005


Hi all,

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:

http://undefined.org/python/matplotlib-0.71-py2.3-macosx10.3.zip

thanks to Bob Ippolito

-Chris










-- 
Christopher Barker, Ph.D.
Oceanographer
                                     		
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

Chris.Barker at noaa.gov


More information about the Pythonmac-SIG mailing list