|
From: Kimo J. <ki...@ma...> - 2006-04-04 18:00:22
|
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. Kimo On Apr 2, 2006, at 10:42 PM, matplotlib-users- re...@li... wrote: > > Message: 1 > From: Robert Hetland <he...@ta...> > Subject: Re: [Matplotlib-users] compile problems on MacBook Pro > Date: Sun, 2 Apr 2006 16:12:18 -0500 > To: matplotlib-users <mat...@li...> > > > 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? > > -Rob. > > On Apr 1, 2006, at 8:45 AM, Kimo Johnson wrote: > >> Hi, >> >> 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 www.ctan.org). >> >> Below are the errors I get when I run python setup.py build for >> matplotlib. Any help would be appreciated. >> >> Thanks, >> Kimo >> >> >> In file included from src/_ns_cntr.c:28: >> /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ >> 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 >> /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ >> 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// >> ccUP1QvZ.out >> 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/ >> Frameworks/Python.framework/Versions/2.4/lib/python2.4/site- >> packages/numpy/core/include -I/usr/local/include -I/usr/include -I. >> -I/Library/Frameworks/Python.framework/Versions/2.4/include/ >> 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: he...@ta..., w: http://pong.tamu.edu > |