2010/7/15 Stephen T. <obsessiv...@hotmail.com>:
> ============================================================================
> BUILDING MATPLOTLIB
>             matplotlib: 1.0.svn
>                 python: 2.6.5 (r265:79359, Mar 24 2010, 01:32:55)  [GCC
>                         4.0.1 (Apple Inc. build 5493)]
>               platform: darwin
> REQUIRED DEPENDENCIES
>                  numpy: 1.4.1
>              freetype2: 9.20.3
> OPTIONAL BACKEND DEPENDENCIES
>                 libpng: 1.2.35
>                Tkinter: Tkinter: 73770, Tk: 8.4, Tcl: 8.4
>               wxPython: no
>                         * wxPython not found
>                   Gtk+: no
>                         * Building for Gtk+ requires pygtk; you must be able
>                         * to "import gtk" in your build/install environment
>        Mac OS X native: yes
>                     Qt: no
>                    Qt4: no
>                  Cairo: no
> OPTIONAL DATE/TIMEZONE DEPENDENCIES
>               datetime: present, version unknown
>               dateutil: matplotlib will provide
>                   pytz: matplotlib will provide
> adding pytz
> OPTIONAL USETEX DEPENDENCIES
>                 dvipng: 1.9
>            ghostscript: 8.64
>                  latex: 3.141592
>                pdftops: 3.02

Exactly what I had in mind, and everything ok so far.

> [...] and then:
> ld warning: in /opt/local/lib/libfreetype.dylib, file is not of required
> architecture
> ld warning: in /opt/local/lib/libz.dylib, file is not of required
> architecture
> ld: in /opt/local/lib/libxml2.2.dylib, file is not of required architecture
> for architecture ppc
> collect2: ld returned 1 exit status
> ld warning: duplicate dylib /opt/local/lib/libz.1.dylib
> lipo: can't open input file:
> /var/folders/Yh/Yh3On1j+FXW+r-334Wk-vk+++TI/-Tmp-//ccUX0Ard.out (No such
> file or directory)
> error: command 'c++' failed with exit status 1
>> > collect2: ld returned 1 exit status
>>
>> It doesn't tell which arch it's missing. I'm a bit confused about
>> this "missing architecture". What arch does your system have?
>>
> My architecture is an Intel Core 2 Duo 2 GHz (64-bit).

This is important.  I recently had a similar issue (sort of).  I think
the macports library is 32-bit only, and I know that at least for
building Python the build performs 64-bit only by default (this was my
issue) on a 64bit system.  Of course, in case you want to make a 64bit
build against a 32bit library the error would be sensible.

To check this, try to run:
$ file /opt/local/lib/libxml2.2.dylib

When I run it on the Apple supplied file it gives:

/usr/lib/libxml2.dylib: Mach-O universal binary with 3 architectures
/usr/lib/libxml2.dylib (for architecture x86_64):       Mach-O 64-bit
dynamically linked shared library x86_64
/usr/lib/libxml2.dylib (for architecture i386): Mach-O dynamically
linked shared library i386
/usr/lib/libxml2.dylib (for architecture ppc7400):      Mach-O dynamically
linked shared library ppc

Maybe we can track it down that way.

> Sorry for my delayed response - I am currently on travel... but I hope this
> is fixable. If nothing else comes to mind, I will try installing Python 2.6
> from source with the option you mentioned?

I hope you had some patience ... I was sick :-(

And now, as you have choosen the make.osx way, we stick to that.  I'll
try to learn it ... :-)

The --enable-framework switch is only important when you want Python
to be installed in /Library/Frameworks/Python.framework .  Otherwise
it will install in the normal unix path.  I think the python.org
installer installs as a framework, although I'm not completely sure,
and would welcome correction if I'm wrong.

Friedrich

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to