SourceForge logo
SourceForge logo
Menu

[matplotlib-devel] OS X Leopard install, snag

From: John H. <jd...@gm...> - 2007年11月04日 04:19:34
I have a new intel powerbook running OS X 10.5
(leopard) which I upgraded via DVD from a factory installed 10.4. I
decided to take detailed notes on every step of configuring the box as
a development machine for scientific python, figuring it would be
useful to others. The install of ipython, numpy and scipy went really
well (only one snag in scipy following the wiki, which I updated and
is noted in my notes below). But the main problem, sadly, is a
strange problem I've hit trying to compile matplotlib.
My compile is dying with a mysterious
warning about PPC (how did that get in to the compiler flags?) with
some strange hybrid
of 10.4 and 10.3 stuff in the gcc command. If I manually paste in the
g++ command below and remove the -arch ppc part, it compiles fine, so
this is the source of my problems. I don't know if this is a feature
or a bug (universal binary support?) but if someone could advise me
what or where is going wrong and how to fix it, that would be great.
Here is the shorted build output with the compiler command and error:
BUILDING MATPLOTLIB
 matplotlib: 0.90.1
 python: 2.5 (r25:51918, Sep 19 2006, 08:49:13) [GCC 4.0.1
 (Apple Computer, Inc. build 5341)]
 platform: darwin
REQUIRED DEPENDENCIES
 numpy: 1.0.4.dev4380
 freetype2: found, but unknown version (no pkg-config)
OPTIONAL DEPENDENCIES
 Gtk+: no
 * Building for Gtk+ requires pygtk; you must be able
 * to "import gtk" in your build/install environment
 Tkinter: Tkinter: 50704, Tk: 8.4, Tcl: 8.4
 wxPython: 2.8.3.0
 * WxAgg extension not required for wxPython >= 2.8
 Qt: no
 Qt4: no
 Cairo: no
 libpng: found, but unknown version (no pkg-config)
[Edit setup.cfg to suppress the above messages]
============================================================================
running build
running build_py
creating build
creating build/lib.macosx-10.3-fat-2.5
copying lib/pylab.py -> build/lib.macosx-10.3-fat-2.5
creating build/lib.macosx-10.3-fat-2.5/matplotlib
copying lib/matplotlib/__init__.py -> build/lib.macosx-10.3-fat-2.5/matplotlib
copying lib/matplotlib/_cm.py -> build/lib.macosx-10.3-fat-2.5/matplotlib
copying lib/matplotlib/_mathtext_data.py ->
build/lib.macosx-10.3-fat-2.5/matplotlib
copying lib/matplotlib/_pylab_helpers.py ->
build/lib.macosx-10.3-fat-2.5/matplotlib
copying lib/matplotlib/afm.py -> build/lib.macosx-10.3-fat-2.5/matplotlib
copying lib/matplotlib/agg.py -> build/lib.macosx-10.3-fat-2.5/matplotlib
copying lib/matplotlib/art3d.py -> build/lib.macosx-10.3-fat-2.5/matplotlib
copying lib/matplotlib/artist.py -> build/lib.macosx-10.3-fat-2.5/matplotlib
..snip lots of copying....
running build_ext
building 'matplotlib.ft2font' extension
C compiler: gcc -arch ppc -arch i386 -isysroot
/Developer/SDKs/MacOSX10.4u.sdk -fno-strict-aliasing -Wno-long-double
-no-cpp-precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3
creating build/temp.macosx-10.3-fat-2.5
creating build/temp.macosx-10.3-fat-2.5/src
creating build/temp.macosx-10.3-fat-2.5/CXX
compile options: '-I/usr/local/include -I/usr/include -I.
-I/usr/local/include/freetype2 -I/usr/include/freetype2 -I./freetype2
-I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
-c'
gcc: CXX/cxxextensions.c
In file included from /usr/include/math.h:26,
 from
/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/pyport.h:200,
 from
/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/Python.h:57,
 from ./CXX/WrapPython.h:47,
 from CXX/cxxextensions.c:38:
/usr/include/architecture/ppc/math.h:675: warning: conflicting types
for built-in function 'scalb'
gcc: CXX/cxx_extensions.cxx
gcc: src/ft2font.cpp
gcc: CXX/IndirectPythonInterface.cxx
gcc: src/mplutils.cpp
gcc: CXX/cxxsupport.cxx
g++ -arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -g
-bundle -undefined dynamic_lookup
build/temp.macosx-10.3-fat-2.5/src/ft2font.o
build/temp.macosx-10.3-fat-2.5/src/mplutils.o
build/temp.macosx-10.3-fat-2.5/CXX/cxx_extensions.o
build/temp.macosx-10.3-fat-2.5/CXX/cxxsupport.o
build/temp.macosx-10.3-fat-2.5/CXX/IndirectPythonInterface.o
build/temp.macosx-10.3-fat-2.5/CXX/cxxextensions.o -L/usr/local/lib
-L/usr/lib -lfreetype -lz -lstdc++ -lm -o
build/lib.macosx-10.3-fat-2.5/matplotlib/ft2font.so
ld: warning in /Developer/SDKs/MacOSX10.4u.sdk/usr/local/lib/libfreetype.dylib,
file is not of required architecture
ld: warning in /Developer/SDKs/MacOSX10.4u.sdk/usr/local/lib/libgcc_s.10.4.dylib,
missing required architecture ppc in file
ld: in /Developer/SDKs/MacOSX10.4u.sdk/usr/local/lib/libgcc_s.1.dylib,
missing required architecture ppc in file for architecture ppc
collect2: ld returned 1 exit status
lipo: can't open input file:
/var/folders/qT/qTRms9cJHNqoYnbs9+TwVk+++TI/-Tmp-//ccMsnFzZ.out (No
such file or directory)
ld: warning in /Developer/SDKs/MacOSX10.4u.sdk/usr/local/lib/libfreetype.dylib,
file is not of required architecture
ld: warning in /Developer/SDKs/MacOSX10.4u.sdk/usr/local/lib/libgcc_s.10.4.dylib,
missing required architecture ppc in file
ld: in /Developer/SDKs/MacOSX10.4u.sdk/usr/local/lib/libgcc_s.1.dylib,
missing required architecture ppc in file for architecture ppc
collect2: ld returned 1 exit status
lipo: can't open input file:
/var/folders/qT/qTRms9cJHNqoYnbs9+TwVk+++TI/-Tmp-//ccMsnFzZ.out (No
such file or directory)
error: Command "g++ -arch i386 -arch ppc -isysroot
/Developer/SDKs/MacOSX10.4u.sdk -g -bundle -undefined dynamic_lookup
build/temp.macosx-10.3-fat-2.5/src/ft2font.o
build/temp.macosx-10.3-fat-2.5/src/mplutils.o
build/temp.macosx-10.3-fat-2.5/CXX/cxx_extensions.o
build/temp.macosx-10.3-fat-2.5/CXX/cxxsupport.o
build/temp.macosx-10.3-fat-2.5/CXX/IndirectPythonInterface.o
build/temp.macosx-10.3-fat-2.5/CXX/cxxextensions.o -L/usr/local/lib
-L/usr/lib -lfreetype -lz -lstdc++ -lm -o
build/lib.macosx-10.3-fat-2.5/matplotlib/ft2font.so" failed with exit
status 1
Macintosh:matplotlib jdhunter$

View entire thread

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /