What does pkg-config libpng --modversion --libs --cflags
give? The pkg-config error may actually be a red herring, since matplotlib will look in /usr/local even if pkg-config fails, and it obviously found the headers or it wouldn't have gotten to the linking stage. As the author of the pkg-config support I would like to rule that out as the problem though. I think it's more likely that the libpng isn't being built correctly to match the kind of binary matplotlib is building. I'm afraid that's where I hit the end of my knowledge as a non-Mac user, but I'm sure another Mac developer will chime in. Cheers, Mike Rick Muller wrote: > I've been a long time, happy user of MPL, but I'm having some problems > building the latest version (0.98.5.3) on the Mac (python 2.6.2). > > The bottom line is that when I build, I get the error message: > > ld: in /Developer/SDKs/MacOSX10.4u.sdk/usr/local/lib/libPng.dylib, > file is not o > f required architecture for architecture ppc > collect2: ld returned 1 exit status > lipo: can't open input file: > /var/folders/tu/tuLdYMqlEm00c5EVXrMQ+U+++TQ/-Tmp-// > cci4zDq4.out (No such file or directory) > error: command 'g++' failed with exit status 1 > > However, I have a freshly-built version of libpng installed from > source in /usr/local/lib. I don't think MPL is finding it, though, > since during config I see: > > libpng: found, but unknown version (no pkg-config) > > (However, when I install libpng, I do install the pc file, viz: > cd /usr/local/lib/pkgconfig; rm -f libpng.pc > cd /usr/local/lib/pkgconfig; ln -s libpng12.pc libpng.pc) > > I'm probably doing something dumb. Is there a workaround to this? > > Thanks in advance, > > Rick > > -- > Rick Muller > rpmul...@gmail.com <mailto:rpmul...@gmail.com> > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > > ------------------------------------------------------------------------ > > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA ------------------------------------------------------------------------------ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users