compile problems on MacBook Pro

Thanks. I commented out the lines you suggested and MPL compiles and runs. I haven't done extensive testing, but I am able to generate simple plots.



On Apr 2, 2006, at 10:42 PM, matplotlib-users- wrote:

Message: 1
From: Robert Hetland <hetland@...760...>
Subject: Re: [Matplotlib-users] compile problems on MacBook Pro
Date: Sun, 2 Apr 2006 16:12:18 -0500
To: matplotlib-users <>

I had the same problem, and solved it by deleting the lines in the
arrayobject header file that (re)defined uint and ushort. MPL
compiles fine after this change. I think this is an issue with
changing numpy, and not with the Intel Mac in general.

Has anybody else run into this issue?


On Apr 1, 2006, at 8:45 AM, Kimo Johnson wrote:


  I'm trying to install matplotlib on my MacBook Pro. I installed
python 2.4.3 using the Universal-MacPython-2.4.3.dmg installer and
then installed NumPy 0.9.6 from source. I have libfreetype and
libpng in /usr/local/lib, probably from my LaTeX install (using
MacTeX-20060314.dmg from

  Below are the errors I get when I run python build for
matplotlib. Any help would be appreciated.


In file included from src/_ns_cntr.c:28:
site-packages/numpy/core/include/numpy/arrayobject.h:139: error:
redefinition of typedef 'ushort'
/usr/include/sys/types.h:85: error: previous declaration of
'ushort' was here
site-packages/numpy/core/include/numpy/arrayobject.h:140: error:
redefinition of typedef 'uint'
/usr/include/sys/types.h:86: error: previous declaration of 'uint'
was here
...(similar errors)
lipo: can't figure out the architecture type of: /var/tmp//
error: Command "gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/
MacOSX10.4u.sdk -fno-strict-aliasing -Wno-long-double -no-cpp-
precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -I/Library/
packages/numpy/core/include -I/usr/local/include -I/usr/include -I.
python2.4 -c src/_ns_cntr.c -o build/temp.macosx-10.4-fat-2.4/src/
_ns_cntr.o -DSCIPY=1" failed with exit status 1

Rob Hetland, Assistant Professor
Dept of Oceanography, Texas A&M University
p: 979-458-0096, f: 979-845-6331
e: hetland@...760..., w: