I've had an ongoing problem building eggs of matplotlib that are statically linked to freetype. I thought I had it nailed, but evidently I do not. Here is my script:
export CFLAGS="-arch i386 -I/Developer/src/libpng -I/Developer/src/freetype/include" export LDFLAGS="-arch i386 -L/Developer/src/libpng -L/Developer/src/freetype" rm -rf build python setupegg.py bdist_egg The build of freetype in /Developer/src/freetype does not even have dynamic libs built. The basedir dict in setupext.py contains the following entry for OSX: 'darwin' : [] However, when the resulting egg is installed by users, they still get the following error: ImportError: dlopen(/Library/Python/2.5/site-packages/matplotlib- 0.98pre-py2.5-macosx-10.5-i386.egg/matplotlib/ft2font.so, 2): Library not loaded: /usr/local/lib/libfreetype.6.dylib Referenced from: /Library/Python/2.5/site-packages/matplotlib-0.98pre-py2.5-macosx-10.5- i386.egg/matplotlib/ft2font.so Reason: image not found I thought I had my bases covered -- if anyone has some insight here, please let me know. maptlotlib is the only missing piece of the "superpack" of modules that I distribute for OSX. ------------------------------------------------------------------------- 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