I tried compiling matplotlib following these directions and it failed on the
build step. Any idea what's going wrong here:



gcc-4.0 -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
-fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -O3
-DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
-I/System/Library/Frameworks/Tcl.framework/Headers
-I/System/Library/Frameworks/Tcl.framework/Versions/Current/PrivateHeaders
-I/System/Library/Frameworks/Tk.framework/Headers
-I/System/Library/Frameworks/Tk.framework/Versions/Current/PrivateHeaders
-I.
-I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include
-Isrc -Iagg24/include -I.
-I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include
-I/opt/local/include/freetype2 -I/opt/local/include -I.
-I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c
CXX/cxxextensions.c -o build/temp.macosx-10.3-fat-2.6/CXX/cxxextensions.o
-framework Tcl -framework Tk
i686-apple-darwin10-gcc-4.0.1: -framework: linker input file unused because
linking not done
i686-apple-darwin10-gcc-4.0.1: Tcl: linker input file unused because linking
not done
i686-apple-darwin10-gcc-4.0.1: -framework: linker input file unused because
linking not done
i686-apple-darwin10-gcc-4.0.1: Tk: linker input file unused because linking
not done
powerpc-apple-darwin10-gcc-4.0.1: -framework: linker input file unused
because linking not done
powerpc-apple-darwin10-gcc-4.0.1: Tcl: linker input file unused because
linking not done
powerpc-apple-darwin10-gcc-4.0.1: -framework: linker input file unused
because linking not done
powerpc-apple-darwin10-gcc-4.0.1: Tk: linker input file unused because
linking not done
c++ -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -g
-bundle -undefined dynamic_lookup
build/temp.macosx-10.3-fat-2.6/src/agg_py_transforms.o
build/temp.macosx-10.3-fat-2.6/src/_tkagg.o
build/temp.macosx-10.3-fat-2.6/CXX/cxx_extensions.o
build/temp.macosx-10.3-fat-2.6/CXX/cxxsupport.o
build/temp.macosx-10.3-fat-2.6/CXX/IndirectPythonInterface.o
build/temp.macosx-10.3-fat-2.6/CXX/cxxextensions.o -L/opt/local/lib -lstdc++
-lm -lfreetype -lz -lz -lstdc++ -lm -o
build/lib.macosx-10.3-fat-2.6/matplotlib/backends/_tkagg.so -framework Tcl
-framework Tk
ld: warning: in /opt/local/lib/libfreetype.dylib, file was built for
unsupported file format which is not the architecture being linked (ppc)
ld: warning: in /opt/local/lib/libz.dylib, file was built for unsupported
file format which is not the architecture being linked (ppc)
ld: in /opt/local/lib/libxml2.2.dylib, file was built for unsupported file
format which is not the architecture being linked (ppc) for architecture ppc
collect2: ld returned 1 exit status
ld: warning: in /opt/local/lib/libfreetype.dylib, file was built for
unsupported file format which is not the architecture being linked (i386)
ld: warning: in /opt/local/lib/libz.dylib, file was built for unsupported
file format which is not the architecture being linked (i386)
ld: in /opt/local/lib/libxml2.2.dylib, file was built for unsupported file
format which is not the architecture being linked (i386) for architecture
i386
collect2: ld returned 1 exit status
lipo: can't open input file: /var/tmp//ccuCbz2a.out (No such file or
directory)
error: command 'c++' failed with exit status 1


----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 24 Jun 2010 20:58:37 -0400
> From: Adam J Richards <adamri...@gmail.com>
> Subject: Re: [Matplotlib-users] Mac OS X 10.6 dmg install (Tim Gray)
> To: matplotlib-users@lists.sourceforge.net
> Message-ID: <4c23ff3d.1000...@gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Hi Tim,
>
>  From what I gather you are trying to install everything from source the
> trying to install via the dmg.  I did a fresh install of python,
> matplotlib and a number of other packages today (on 10.6) and maybe it
> would be helpful to see how to install from source.  When installing
> Python, be sure to use --enable-framework.  I used a /usr/local prefix
> though this may be somewhere else for you.
>
> $ wget http://www.python.org/ftp/python/2.6.5/Python-2.6.5.tar.bz2
> $ tar -jxvf Python-2.6.5.tar.bz2
> $ cd Python-2.6.5
> $ ./configure --prefix=/usr/local --enable-framework
> $ make
> $ make install
>
> It appears that you have already installed numpy and so you would also
> need the following:
>
> dateutils
> $ sudo wget
> http://labix.org/download/python-dateutil/python-dateutil-1.5.tar.gz
> $ sudo tar xzf python-dateutil-1.5.tar.gz
> $ cd python-dateutil-1.5
> $ sudo /usr/local/bin/python setup.py install
>
> freetype
> $
>
> http://download.savannah.gnu.org/releases-noredirect/freetype/freetype-2.3.12.tar.gz
> $ sudo tar xzf freetype-2.3.12.tar.gz
> $ cd freetype-2.3.12
> $ sudo ./configure --prefix=/usr/local
> $ sudo make
> $ sudo make install
>
> libpng
> $ sudo wget
>
> http://sourceforge.net/projects/libpng/files/01-libpng-master/1.4.2/libpng-1.4.2.tar.gz/download
> $ sudo tar xzf libpng-1.4.2.tar.gz
> $ cd libpng-1.4.2
> $ sudo ./configure --prefix=/usr/local
> $ sudo make
> $ sudo make install
>
> pkconfig
> $ sudo wget
> http://pkgconfig.freedesktop.org/releases/pkg-config-0.22.tar.gz
> $ sudo tar xzf pkg-config-0.22.tar.gz
> $ cd pkg-config-0.22
> $ sudo ./configure --prefix=/usr/local
> $ sudo make
> $ sudo make install
>
> Finally, you should be able to install matplotlib from source using,
> $ sudo wget
>
> http://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-0.99.3/matplotlib-0.99.3.tar.gz/download
> $ sudo tar xzf matplotlib-0.99.3.tar.gz
> $ cd matplotlib-0.99.3
> $ sudo /usr/local/bin/python setup.py build
> $ sudo /usr/local/bin/python setup.py install_*
> *_
> Hopefully this helps.
>
> -Adam Richards
>
> Duke University
>
>
>
>
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to