On Thu, Jul 9, 2009 at 4:13 PM, W.P. McNeill<bill...@gmail.com> wrote:
> I am trying to install matplot on an OS X (10.5.7) Intel MacBook.  I
> cannot build the matplot lib extensions.  I get the following error:
>
> ....
> g++ -arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk
> -bundle -undefined dynamic_lookup
> build/temp.macosx-10.3-i386-2.5/src/ft2font.o
> build/temp.macosx-10.3-i386-2.5/src/mplutils.o
> build/temp.macosx-10.3-i386-2.5/CXX/cxx_extensions.o
> build/temp.macosx-10.3-i386-2.5/CXX/cxxsupport.o
> build/temp.macosx-10.3-i386-2.5/CXX/IndirectPythonInterface.o
> build/temp.macosx-10.3-i386-2.5/CXX/cxxextensions.o -L/sw/lib
> -L/sw/lib/freetype219/lib -L/usr/local/lib -L/usr/lib -L/sw/lib
> -L/usr/X11R6/lib -lfreetype -lz -lstdc++ -lm -o
> build/lib.macosx-10.3-i386-2.5/matplotlib/ft2font.so
> -Wl,-framework,CoreServices -Wl,-framework,ApplicationServices
> ld warning: in /sw/lib/libfreetype.dylib, file is not of required architecture
> ld: in /sw/lib/libiconv.2.dylib, file is not of required architecture
> for architecture ppc
> collect2: ld returned 1 exit status
> lipo: can't open input file:
> /var/folders/xW/xW61KykkHgSaGc2vPwOTCk+++TI/-Tmp-//ccGEBvWb.out (No
> such file or directory)
> error: command 'g++' failed with exit status 1

It looks like there is an incompatibility with the freetype supplied
in /sw (probably fink supplied).  Perhaps it is not configured as a
universal binary.

You can build mpl from svn the way we do when we make a release, which
will automatically fetch and build the dependencies correctly.  First
see,

  http://matplotlib.sourceforge.net/faq/installing_faq.html#which-python-for-osx

then grab a copy of mpl from svn

  http://matplotlib.sourceforge.net/faq/installing_faq.html#install-svn

and cd into the releases/osx directory and follow the instructions in
the README there.

JDH

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to