[Pythonmac-SIG] PIL w/o tk on Macho

Jack Jansen Jack.Jansen@oratrix.com
Fri, 10 May 2002 23:18:50 +0200


On donderdag, mei 9, 2002, at 10:21 , Dan Grassi wrote:

> I am trying to build PIL on macho but getting the following error:
>
> cc -Wl,-F. -Wl,-flat_namespace,-U,_environ -bundle -framework   
> ./_imaging.o ./decode.o ./encode.o ./map.o ./display.o 
> ./outline.o ./path.o  libImaging/libImaging.a -L/usr/local/lib 
> -ljpeg -L/usr/local/lib -lz  -o ./_imaging.so
> /usr/bin/ld: can't locate framework for: -framework ./_imaging.o

> make: *** [_imaging.so] Error 1
>
For some reason there's a "Python" missing after your 
"-framework" option. Distutils picks that string of funny linker 
options up from the LDSHARED flag in the Makefile that's 
installed in your lib/pythonX.Y/config (installed there by the 
Python "make install"). The value after the -framework comes 
from PYTHONFRAMEWORK, which in the end comes from what you 
passed to the --enable-framework during the Python configure.

Something along this path went wrong. Maybe you did "./configure 
--enable-framework=" or something similar?
--
- Jack Jansen        <Jack.Jansen@oratrix.com>        
http://www.cwi.nl/~jack -
- If I can't dance I don't want to be part of your revolution -- 
Emma Goldman -