Resending, with CC to list.
Thanks for the help! Nightmare of the living crash-test dummy...
I tried following your instructions. Here's what that looks like:
ASR:matplotlib arokem$ make build_os105
make: *** No rule to make target `build_os105'. Stop.
ASR:matplotlib arokem$ cd release/osx
ASR:osx arokem$ open README.txt
I read the README - decide to skip reinstalling python and numpy, and
skipped to the next step ...
ASR:osx arokem$ unset PKG_CONFIG_PATH
ASR:osx arokem$ make fetch_deps dependencies
make: *** No rule to make target `fetch_deps'. Stop.
ASR:osx arokem$ make fetch
wget http://www.zlib.net/zlib-1.2.3.tar.gz &&\
wget
http://internap.dl.sourceforge.net/sourceforge/libpng/libpng-1.2.33.tar.bz2&&\
wget
http://download.savannah.gnu.org/releases/freetype/freetype-2.3.7.tar.bz2&&\
wget
http://pypi.python.org/packages/source/b/bdist_mpkg/bdist_mpkg-0.4.4.tar.gz&&
\
tar xvfz bdist_mpkg-0.4.4.tar.gz &&\
echo "You need to to install bdist_mpkg-0.4.4 now"
/bin/sh: wget: command not found
make: *** [fetch] Error 127
I googled "wget" - downloaded wget source-code, installed wget.
ASR:osx arokem$ make fetch
seemed to work now, after fetch got everything, I continued with the crib
sheet from the README.txt (which has an error in it, the 6th step there is
'cd ..'. That didn't work - instead I ran 'make deps' in the directory I
previously ended up in '/release/osx/', that worked)
Finally:
ASR:osx arokem$ make installers
unset PKG_CONFIG_PATH &&\
tar xvfz matplotlib-0.99.0.tar.gz && \
cd matplotlib-0.99.0 && \
rm -rf build && \
cp ../data/setup.cfg ../data/ReadMe.txt . &&\
export CFLAGS="-Os -arch ppc -arch i386
-I/Users/arokem/source/matplotlib/release/osx/zlib-1.2.3
-I/Users/arokem/source/matplotlib/release/osx/libpng-1.2.33
-I/Users/arokem/source/matplotlib/release/osx/freetype-2.3.7/include" &&\
export LDFLAGS="-arch ppc -arch i386
-L/Users/arokem/source/matplotlib/release/osx/zlib-1.2.3
-L/Users/arokem/source/matplotlib/release/osx/libpng-1.2.33
-L/Users/arokem/source/matplotlib/release/osx/freetype-2.3.7" &&\
/Library/Frameworks/Python.framework/Versions/2.6/bin/bdist_mpkg
--readme=ReadMe.txt &&\
hdiutil create -srcdir dist/matplotlib-0.99.0-py2.6-macosx10.5.mpkg
dist/matplotlib-0.99.0-py2.6-macosx10.5.dmg &&\
python2.6 setupegg.py bdist_egg
tar (child): matplotlib-0.99.0.tar.gz: Cannot open: No such file or
directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors
make: *** [installers] Error 2
But the version number I have here is matplotlib-1.0.svn (is that what I am
supposed to have? I grabbed the svn as instructed on the webpage you linked
to before), so I go and edit the Makefile, to reflect that. I run that
again, it does a lot of stuff (I have the full output saved, if you want to
see that). Then, finally:
g++ -arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -bundle
-undefined dynamic_lookup -arch ppc -arch i386
-L/Users/arokem/source/matplotlib/release/osx/zlib-1.2.3
-L/Users/arokem/source/matplotlib/release/osx/libpng-1.2.33
-L/Users/arokem/source/matplotlib/release/osx/freetype-2.3.7 -Os -arch ppc
-arch i386 -I/Users/arokem/source/matplotlib/release/osx/zlib-1.2.3
-I/Users/arokem/source/matplotlib/release/osx/libpng-1.2.33
-I/Users/arokem/source/matplotlib/release/osx/freetype-2.3.7/include
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/opt/local/lib
-L/usr/local/lib -L/usr/lib -L/sw/lib -lfreetype -lz -lz -lstdc++ -lm -o
build/lib.macosx-10.3-fat-2.5/matplotlib/ft2font.so
-Wl,-framework,CoreServices -Wl,-framework,ApplicationServices
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 /Developer/SDKs/MacOSX10.4u.sdk/usr/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/Qb/QbU9SmFNHoWnC7v-nTJYrE+++TI/-Tmp-//ccp3hmVy.out (No such
file or directory)
error: command 'g++' failed with exit status 1
make: *** [installers] Error 1
So - I am back to square 1, it seems. Do you know where I should go from
here?
Cheers,
Ariel
On Tue, Aug 11, 2009 at 6:37 PM, John Hunter <jdh2...@gmail.com> wrote:
> On Tue, Aug 11, 2009 at 8:29 PM, Ariel Rokem<aro...@berkeley.edu> wrote:
>
> > Am I doing something wrong? I promise to follow your instructions, if I
> can
> > make it work :-)
>
> No worries -- OSX is a nightmare. First try this:
>
> make build_osx105
>
> and if that works, you can
>
> python setup.py install
>
> If that doesn't work, try
>
> cd release/osx
> # read the readme, then
> make fetch_deps dependencies
> # install bdist_wininst as instructed
> make installers
>
> the latter sequence is what I do when building the installers, and
> will grab all the dependencies, build them from src with the right
> flags, and use them instead of the system wide installed ones.
>
> There is no reason for you to go through this for a simple pure python
> patch, but I am interested in figuring out a way for regular OSX users
> to be able to build mpl, so am happy to use you as a crash test dummy
> :-)
>
> See also:
>
> http://matplotlib.sourceforge.net/users/installing.html#building-on-osx
> http://matplotlib.sourceforge.net/faq/installing_faq.html#os-x-questions
>
> JDH
>
--
Ariel Rokem
Helen Wills Neuroscience Institute
University of California, Berkeley
http://argentum.ucbso.berkeley.edu/ariel
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel