I've been trying to build and install matplotlib now for a few days, and
have met with no success. I'm running OSX 10.5.4 on a MacBook Pro,
Python 2.5.2 from MacPython, gcc 4.0.1, gfortran 4.3.0, and the latest
version of Apple's XCode (3.1, which, if I understand correctly, has the
necessary libpng and freetype libraries). I've got numpy 1.2.0 and scipy
0.6.0 installed so far. I'd read that I should set the following
environment variables prior to building:
export MACOSX_DEPLOYMENT_TARGET=10.5
export CFLAGS="-arch i386 -arch ppc -isysroot
/Developer/SDKs/MacOSX10.5.sdk"
export LDFLAGS="-arch i386 -arch ppc
-isyslibroot,/Developer/SDKs/MacOSX10.5.sdk"
Building starts off OK:
============================================================================
BUILDING MATPLOTLIB
matplotlib: 0.98.1
python: 2.5.2 (r252:60911, Feb 22 2008, 07:57:53) [GCC
4.0.1 (Apple Computer, Inc. build 5363)]
platform: darwin
REQUIRED DEPENDENCIES
numpy: 1.2.0.dev5312
freetype2: 9.16.3
OPTIONAL BACKEND DEPENDENCIES
libpng: 1.2.8
Tkinter: Tkinter: 50704, Tk: 8.4, Tcl: 8.4
wxPython: 2.8.3.0
* WxAgg extension not required for wxPython >= 2.8
Gtk+: no
* Building for Gtk+ requires pygtk; you must be
able
* to "import gtk" in your build/install environment
Qt: no
Qt4: no
Cairo: no
OPTIONAL DATE/TIMEZONE DEPENDENCIES
datetime: present, version unknown
dateutil: matplotlib will provide
pytz: matplotlib will provide
OPTIONAL USETEX DEPENDENCIES
dvipng: 1.5
ghostscript: 8.61
latex: 3.141592
EXPERIMENTAL CONFIG PACKAGE DEPENDENCIES
configobj: matplotlib will provide
enthought.traits: 2.6b1-mpl
[Edit setup.cfg to suppress the above messages]
============================================================================
... but eventually chokes:
g++ -arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -g
-bundle -undefined dynamic_lookup -arch i386 -arch ppc
-isyslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch i386 -arch ppc
-isysroot /Developer/SDKs/MacOSX10.5.sdk
build/temp.macosx-10.5-fat-2.5/src/ft2font.o
build/temp.macosx-10.5-fat-2.5/src/mplutils.o
build/temp.macosx-10.5-fat-2.5/CXX/cxx_extensions.o
build/temp.macosx-10.5-fat-2.5/CXX/cxxsupport.o
build/temp.macosx-10.5-fat-2.5/CXX/IndirectPythonInterface.o
build/temp.macosx-10.5-fat-2.5/CXX/cxxextensions.o -L/usr/X11/lib
-L/sw/lib/freetype219/lib -L/usr/local/lib -L/usr/lib -L/sw/lib
-L/usr/X11R6/lib -lfreetype -lz -lz -lstdc++ -lm -o
build/lib.macosx-10.5-fat-2.5/matplotlib/ft2font.so
-Wl,-framework,CoreServices,-framework,ApplicationServices
ld warning: in
/Developer/SDKs/MacOSX10.4u.sdk/usr/local/lib/libgcc_s.10.5.dylib,
missing required architecture i386 in file
ld: in /Developer/SDKs/MacOSX10.4u.sdk/usr/local/lib/libgcc_s.1.dylib,
missing required architecture i386 in file for architecture i386
collect2: ld returned 1 exit status
lipo: can't open input file:
/var/folders/mX/mXK0L5vQF7elQu1RMPhkyU+++TI/-Tmp-//cc1JpFBv.out (No such
file or directory)
error: command 'g++' failed with exit status 1
It looks to me as if ld is trying to link to the wrong SDK (10.4 instead
of 10.5) which might not be built for Intel Macs... is that right? Is
that actually what's causing the build to fail? I'm totally stuck, and
would appreciate any advice.
-P
--
Peter A. Selkin
Assistant Professor, Environmental Geophysics
IAS/Environmental Science
University of Washington, Tacoma
1900 Commerce St., Box 358436
Tacoma, WA 98402
[EMAIL PROTECTED]
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users