I just tried compiling with the following command:
sudo make -f make.osx fetch deps mpl_build mpl_install
At first it was failing almost immediately, but then I changed make.osx so that it was fetching zlib-1.2.5 and it got further but still failed. The log is at the link below:
···
On Mon, Jun 28, 2010 at 9:36 AM, Ranjit Chacko <rjchacko@…120…287…> wrote:
I edited the make.osx file also which you can see here:
http://titanpad.com/94eSOCozk4
On Mon, Jun 28, 2010 at 9:19 AM, Ranjit Chacko <rjchacko@…287…> wrote:
Thanks so much for your help. I really appreciate it.
This is what I get when I run otool:
ft2font.so (architecture ppc7400):
/usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.3)
/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.9.0)/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 88.3.11) /usr/local/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0) /usr/lib/libmx.A.dylib (compatibility version 1.0.0, current version 47.1.0)
ft2font.so (architecture i386):
/usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.3)
/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.9.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 88.3.11)/usr/local/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
This is the output of gcc --version:
i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5664)And the output of g++:
i686-apple-darwin10-g+±4.2.1 (GCC) 4.2.1 (Apple Inc. build 5664)
I’m not really sure what the steps I followed are anymore. After things didn’t work I just tried different things I saw described on different blogs or mailing list archives.
I’m not sure if I used pkg-config though. I’m trying to compile matplotlib on 10.6. At first nothing was working, and then I downloaded Xcode again and checked off the option to include the 10.4 libraries, so both are present now. Both gcc-.40 and gcc-4.2 are present but I’m not really sure what’s being used when.
Thanks again.
-Ranjit
On Sun, Jun 27, 2010 at 2:22 PM, Friedrich Romstedt <friedrichromstedt@…287…> wrote:
First, since you said you used pkg-config I would like to know what
libfreetype the ft2font.so lib is actually linked against. Can you
issue an otool -L ft2font.so in the matplotlib’s directory? This will
tell you what libs are used.
I think most important is the compiler used, but since you are on 10.4
apparently, I don’t know what the recent compiler for you is. Is it
gcc-4.0? (It seems to be.) Are there other gcc’s around which could
have been used for the libfreetype2, or for Python itself? Can you
issue in a clean shell gcc --version, and it seems you used c++ as the
command for .cpp sources, right, so can you issue c++ --version too?
And what were your steps to get it build from the weird errors you
posted before (I didn’t get a clue from them).
I don’t know if I can help you but at least I can try to, right …
Friedrich
2010/6/25 Ranjit Chacko <rjchacko@…287…>:
I finally somehow managed to get matplotlib to compile but now when I try to
import matplotlib.pyplot I get the following error:
ImportError:
dlopen(/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/ft2font.so,
2): Symbol not found: _FT_Attach_File
Referenced from:
/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/ft2font.so
Expected in: dynamic lookup