[Image-SIG] Installation problem

Bjorn Backes bjbackes at stanford.edu
Sat Sep 5 00:06:58 CEST 2009


Hi,

I want to use the PIL for my research work but I got some problems  
during the installation. I recently updated my Mac to OS 10.6 but I  
had not installed the PIL before but I installed altready Python 2.6.  
So after the installation of the operating system I updated the  
development tools form 3.0 to 3.2. After that I installed MacPorts and  
the gd2 package. So I got the necessary libs like libjpeg, zlib and  
freetype. After that I tried the command  "python setup.py build_ext - 
i" in the Imaging-1.1.6 directory and I got the following error message.

$ python setup.py build_ext -i
running build_ext
--- using frameworks at /System/Library/Frameworks
building '_imaging' extension
gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk - 
fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -O3 - 
DHAVE_LIBJPEG -DHAVE_LIBZ -I/System/Library/Frameworks/Tcl.framework/ 
Headers -I/System/Library/Frameworks/Tk.framework/Headers -I/opt/local/ 
include/freetype2 -IlibImaging -I/opt/local/include -I/Library/ 
Frameworks/Python.framework/Versions/2.6/include -I/usr/local/include - 
I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.6/ 
include/python2.6 -c _imaging.c -o build/temp.macosx-10.3-fat-2.6/ 
_imaging.o
In file included from /usr/include/math.h:26,
                  from /Library/Frameworks/Python.framework/Versions/ 
2.6/include/python2.6/pyport.h:235,
                  from /Library/Frameworks/Python.framework/Versions/ 
2.6/include/python2.6/Python.h:58,
                  from _imaging.c:76:
/usr/include/architecture/ppc/math.h:666: warning: conflicting types  
for built-in function ‘scalb’
In file included from /usr/include/stdarg.h:4,
                  from /Library/Frameworks/Python.framework/Versions/ 
2.6/include/python2.6/unicodeobject.h:4,
                  from /Library/Frameworks/Python.framework/Versions/ 
2.6/include/python2.6/Python.h:85,
                  from _imaging.c:76:
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/stdarg.h:4:25: error:  
stdarg.h: No such file or directory
_imaging.c:2907: warning: initialization from incompatible pointer type
_imaging.c:2967: warning: initialization from incompatible pointer type
In file included from /usr/include/architecture/i386/math.h:626,
                  from /usr/include/math.h:28,
                  from /Library/Frameworks/Python.framework/Versions/ 
2.6/include/python2.6/pyport.h:235,
                  from /Library/Frameworks/Python.framework/Versions/ 
2.6/include/python2.6/Python.h:58,
                  from _imaging.c:76:
/usr/include/AvailabilityMacros.h:108:14: warning: #warning Building  
for Intel with Mac OS X Deployment Target < 10.4 is invalid.
In file included from /usr/include/stdarg.h:4,
                  from /Library/Frameworks/Python.framework/Versions/ 
2.6/include/python2.6/unicodeobject.h:4,
                  from /Library/Frameworks/Python.framework/Versions/ 
2.6/include/python2.6/Python.h:85,
                  from _imaging.c:76:
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/stdarg.h:4:25: error:  
stdarg.h: No such file or directory
_imaging.c:2907: warning: initialization from incompatible pointer type
_imaging.c:2967: warning: initialization from incompatible pointer type
lipo: can't figure out the architecture type of: /var/folders/+G/ 
+Gkc0RsCG0K3jvpjrc8CbU+++TI/-Tmp-//cc1JWACK.out
error: command 'gcc' failed with exit status 1

Do you have any idea? Any help is really appreciate!
Thanks in advance!

Bjorn



--

Bjorn Backes
Postdoctoral Scholar
Department of Materials Science and Engineering
496 Lomita Mall, Durand Bldg.
Stanford University
Stanford, CA 94305-4034
e-mail: bjbackes at stanford.edu






More information about the Image-SIG mailing list