On Jul 29, 2009, at 5:34 PM, Uri Laserson wrote:

> Hi everyone,
>
> I am trying to build the latest svn trunk version of MPL on OS X  
> 10.5.  I am getting the following error:
>
> ld: in /Developer/SDKs/MacOSX10.4u.sdk/usr/local/lib/libPng.dylib,  
> file is not of required architecture for architecture ppc
>
>
> g++ -arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk - 
> g -bundle -undefined dynamic_lookup build/temp.macosx-10.3-i386-2.5/ 
> src/agg_py_transforms.o build/temp.macosx-10.3-i386-2.5/src/_tkagg.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/usr/local/lib -L/usr/lib -L/usr/ 
> local/lib -L/usr/lib -lstdc++ -lm -lfreetype -lz -lstdc++ -lm -o  
> build/lib.macosx-10.3-i386-2.5/matplotlib/backends/_tkagg.so - 
> framework Tcl -framework Tk
> ld: warning in /Developer/SDKs/MacOSX10.4u.sdk/usr/local/lib/ 
> libfreetype.dylib, file is not of required architecture

Look at the g++ call arguments you see that you are compiling for - 
arch i386 and -arch ppc, i.e. you are
building a universial build. To do this the .dylib libraries have to  
be universial also. So you have two
options: 1) Rebuild the required libraries; or 2) figure out how to  
remove -arch ppc from the matplotlib build.

Cheers
   Tommy

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to