[Pythonmac-SIG] compiling PIL on OSX10.5
DavidW
vip at avatar.com.au
Thu Feb 28 06:05:39 CET 2008
Hello all,
I'm trying to compile the image library PIL 1.1.6, using their setup.py
(python 2.4 on OX10.5) and
gcc (i686-apple-darwin9-gcc-4.0.1) loader is throwing a build error:
-----------
building '_imagingtk' extension
gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -g -
bundle -undefined dynamic_lookup build/temp.macosx-10.5-fat-2.4/
_imagingtk.o build/temp.macosx-10.5-fat-2.4/Tk/tkImaging.o -L/opt/
local/lib -L/usr/local/lib -L/Library/Frameworks/Python.framework/
Versions/2.4/lib -L/usr/lib -o PIL/_imagingtk.so -framework Tcl -
framework Tk
ld: in /Developer/SDKs/MacOSX10.4u.sdk/usr/local/lib/libcrypto.
0.9.7.dylib, file is not of required architecture for architecture i386
collect2: ld returned 1 exit status
-----------
which is fair enough, but- why is setup.py looking for /Developer/SDKs/
MacOSX10.4u.sdk?
even though MacOSX10.5.sdk is also at Developer/SDKs/
Is there any reason to keep MacOSX10.4.sdk hanging around?
I moved it out of the way and setup.py puts this together for
compilation:
-----------
building '_imagingmath' extension
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/System/Library/Frameworks/
Tcl.framework/Headers -I/System/Library/Frameworks/Tk.framework/
Headers -IlibImaging -I/opt/local/include -I/Library/Frameworks/
Python.framework/Versions/2.4/include -I/usr/local/include -I/usr/
include -I/Library/Frameworks/Python.framework/Versions/2.4/include/
python2.4 -c _imagingmath.c -o build/temp.macosx-10.5-fat-2.4/
_imagingmath.o
-----------
i.e it still want to reference /Developer/SDKs/MacOSX10.4u.sdk
Any clues?
(golly, I hope this is the right list for this ! :-)
thanks,
David
________________________________________________
David Worrall.
- Experimental Polymedia: www.avatar.com.au
- Education for Financial Independence: www.mindthemarkets.com.au
Australian research affiliations:
- Capital Markets Cooperative Research Centre: www.cmcrc.com
- Sonic Communications Research Group: creative.canberra.edu.au/scrg
More information about the Pythonmac-SIG
mailing list