Hi Friedrich,
Thanks so much for your response!
> Date: Wed, 7 Jul 2010 20:16:24 +0200
>
> Since you are 10.5, I think your default compiler is gcc-4.0 if I'm
> not very much mistaken. Can you please verify that by issuing gcc
> --version?
>
> I had a private conversation with the "owner" of the previous thread
> about OS X, and it seems that there are two ways to build matplotlib.
> I personally had no luck with the prebuilt version either, but I don't
> remember the issue, I think it wasn't compatible with my gcc-4.2
> compiled freetype2 (I'm on 10.6).
>
> a) Use make.osx. This is quite easy, but you have no control over
> where the libraries are installed, and if you do not log it via 2>&1 |
> tee log.txt we will be unable to diagnose. make.osx installs
> libraries in your system, so be aware of this.
>
> b) Install the libraries on your own. This seems to be a little more
> complicated, but it isn't really. I used libpng 1.4 with a few
> modifications, just a few lines in src/_png.cpp. (You also may
> already have recent enough versions through your /opt/ path.)
>
> Sorry, I'm writing this again and again to all the users I tried to
> convice of this way, but I didn't find inclination to do it properly
> together with the developers on the website.
It is indeed true that I have gcc 4.0i686-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1
(Apple Inc. build 5490)
> Did you compile Python 2.6 yourself? If yes, have you made sure to
> use the --enable-framework switch for configure?
I installed it using a pre-compiled binary for OS X Leopard, so I did not set
any options. Perhaps I should build from source and add this option?
>
> > I've tried EasyInstall, svn, and dmg. The dmg expects Apple Python 2.6 so
> > that's out. For the EasyInstall and svn routes I think I must be missing
> > some external libraries? Below are some snippets of warnings/error messages:
>
> It would be helpful to have information about the initial diagnostic
> output of the setup.py call, but I don't know if easy_install works
> that way. The installation routine tells there what libraries are
> found and if you have pkg-config it tells also the version found.
>
> > from EasyInstall:
> > $ easy_install matplotlib
> >
> > matplotlib: 0.99.3
> > warning: no files found matching 'MANIFEST'
> > warning: no files found matching 'lib/mpl_toolkits'
> > 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 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 warning: in /opt/local/lib/libpng12.dylib, file is not of required
> > architecture
> > ld warning: in /opt/local/lib/libz.dylib, file is not of required
> > architecture
> > 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
>
> I think /opt/ installs are macports or similar? What kind of "package
> system" for Mac do you have installed?
That is true... I do have Macports installed and /opt/ is for Macports. But for
Python, Numpy, and Scipy, I used the pre-compiled binaries for OS X; the
matplotlib I am trying to install now is from the subversion repository. I am
not sure what you mean by the initial diagnostic output (perhaps output
below?), but I used make.osx and specified that zlib, png and freetype be
installed in my ~/dev directory as shown in README.osx and make.osx. I also
added all the paths recursively to my PATH in case it was using this variable
to look for these programs, but my output error still looks like
basedirlist is:
[]============================================================================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 provideadding pytz
OPTIONAL USETEX DEPENDENCIES dvipng: 1.9 ghostscript:
8.64 latex: 3.141592 pdftops: 3.02
[...] and then:ld warning: in /opt/local/lib/libfreetype.dylib, file is not of
required architectureld warning: in /opt/local/lib/libz.dylib, file is not of
required architectureld: in /opt/local/lib/libxml2.2.dylib, file is not of
required architecture for architecture ppccollect2: ld returned 1 exit statusld
warning: duplicate dylib /opt/local/lib/libz.1.dyliblipo: 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).
> Please be prepared that it may take a while to sort out all the issues
> on our way. But I'm sure it's worth!
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?
Thanks so much!Stephen
_________________________________________________________________
The New Busy is not the too busy. Combine all your e-mail accounts with Hotmail.
http://www.windowslive.com/campaign/thenewbusy?tile=multiaccount&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4
------------------------------------------------------------------------------
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