[Pythonmac-SIG] PIL for OSX/Darwin

Just van Rossum just@letterror.com
Sat, 4 Aug 2001 00:38:36 +0200


Tony Lownds wrote:

> It looks to me like jpeglib is not really installed? Try finding out 
> where it is installed, and adding -L/where/that/is to the 
> Imaging-1.1.2/Setup file.

Ugh. Make didn't install the headers nor the libraries. Now I get this:

cc  -bundle -undefined suppress  ./_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: table of contents for archive: /usr/local/lib/libjpeg.a is out of
date; rerun ranlib(1) (can't load from it)
make: *** [_imaging.so] Error 1
[localhost:~/Imaging-1.1.2] just% 

> >I've tried to build and install jpeglib (or whatever the name is of 
> >the jpeg lib
> >that PIL requires) and that seemed to go fine (no errors). I guess 
> >it's time to
> >ask the effbot... Too bad PIL doesn't yet use distutils.
> >
> >By the way, what's the magic to get zlib under Darwin Python?
> 
> ../configure; make; sudo make install
> 
> I've attached the sources for zlib

Thanks, installed just fine. But now I need to build the Python zlib.so. I tried
to rebuild Python (stock 2.1.1) after "Make clean" but get another fantastic set
of errors that I didn't get the first time I built 2.1.1 (pasted below). Any
hints? Thanks...

Just

cc -c -g -O2 -Wall -Wstrict-prototypes -I. -I./Include -DHAVE_CONFIG_H  -o
Python/dynload_next.o Python/dynload_next.c
/usr/include/objc/objc-class.h:125: undefined type, found `@class'
/usr/include/objc/objc-class.h:130: undefined type, found `Protocol'
/usr/include/objc/Object.h:38: undefined type, found `@class'
/usr/include/objc/Object.h:40: undefined type, found `@interface'
/usr/include/objc/Object.h:40: illegal external declaration, missing `;' after
`Object'
/usr/include/objc/Object.h:48: illegal method definition, found `-'
/usr/include/objc/Object.h:48: illegal method definition, missing `{' after
`init'
/usr/include/objc/Object.h:53: illegal method definition, found `+'
/usr/include/objc/Object.h:53: illegal method definition, missing `{' after
`free'
/usr/include/objc/Object.h:55: illegal method definition, found `+'
/usr/include/objc/Object.h:55: illegal method definition, missing `{' after
`alloc'
/usr/include/objc/Object.h:57: illegal method definition, found `+'
/usr/include/objc/Object.h:57: illegal method definition, missing `{' after
`zone'
/usr/include/objc/Object.h:59: illegal method definition, found `-'
/usr/include/objc/Object.h:59: illegal method definition, missing `{' after
`zone'
/usr/include/objc/Object.h:64: illegal method definition, found `+'
/usr/include/objc/Object.h:64: illegal method definition, missing `{' after
`superclass'
/usr/include/objc/Object.h:66: illegal method definition, found `-'
/usr/include/objc/Object.h:66: illegal method definition, missing `{' after
`class'
/usr/include/objc/Object.h:68: illegal method definition, found `-'
/usr/include/objc/Object.h:68: illegal method definition, missing `{' after
`name'
/usr/include/objc/Object.h:73: illegal method definition, found `-'
/usr/include/objc/Object.h:73: illegal method definition, missing `{' after
`hash'
/usr/include/objc/Object.h:78: illegal method definition, found `-'
/usr/include/objc/Object.h:78: illegal method definition, missing `{' after
`aClassObject'
/usr/include/objc/Object.h:80: illegal method definition, found `-'
/usr/include/objc/Object.h:80: illegal method definition, missing `{' after
`aClassName'
/usr/include/objc/Object.h:85: illegal method definition, found `+'
/usr/include/objc/Object.h:85: illegal method definition, missing `{' after
`aSelector'
/usr/include/objc/Object.h:90: illegal method definition, found `-'
/usr/include/objc/Object.h:90: illegal method definition, missing `{' after
`aProtocolObject'
/usr/include/objc/Object.h:91: undefined type, found `Protocol'
/usr/include/objc/Object.h:95: illegal method definition, missing `{' after
`aSel'
/usr/include/objc/Object.h:100: illegal method definition, found `-'
/usr/include/objc/Object.h:100: illegal method definition, missing `{' after
`aSelector'
/usr/include/objc/Object.h:105: illegal method definition, found `-'
/usr/include/objc/Object.h:105: illegal method definition, missing `{' after
`aSelector'
/usr/include/objc/Object.h:107: illegal method definition, found `-'
/usr/include/objc/Object.h:107: illegal method definition, missing `{' after
`object2'
/usr/include/objc/Object.h:115: illegal method definition, found `-'
/usr/include/objc/Object.h:115: illegal method definition, missing `{' after
`aSelector'
/usr/include/objc/Object.h:120: illegal method definition, found `-'
/usr/include/objc/Object.h:120: illegal method definition, missing `{' after
`aSelector'
/usr/include/objc/Object.h:125: illegal method definition, found `-'
/usr/include/objc/Object.h:125: illegal method definition, missing `{' after
`stream'
/usr/include/objc/Object.h:130: illegal method definition, found `-'
/usr/include/objc/Object.h:130: illegal method definition, missing `{' after
`stream'
/usr/include/objc/Object.h:132: illegal method definition, found `+'
/usr/include/objc/Object.h:132: illegal method definition, missing `{' after
`version'
/usr/include/objc/Object.h:137: illegal method definition, found `-'
/usr/include/objc/Object.h:137: illegal method definition, missing `{' after
`args'
/usr/include/objc/Object.h:140: illegal method definition, found `@end'
/usr/include/objc/Object.h:146: illegal method definition, missing `{' after
`stream'
/usr/include/objc/Object.h:149: illegal method definition, found `@end'
/usr/include/objc/Object.h:157: illegal method definition, missing `{' after
`header'
/usr/include/objc/Object.h:160: illegal method definition, found `@end'
/usr/include/objc/Object.h:163: illegal method definition, missing `{' after `)'
/usr/include/objc/Object.h:164: undefined type, found `Object'
/usr/include/objc/Object.h:165: undefined type, found `Object'
/usr/include/objc/Object.h:166: undefined type, found `Object'
/usr/include/objc/Object.h:167: undefined type, found `Object'
Python/dynload_next.c:30: header file 'mach-o/rld.h' not found
Python/dynload_next.c:51: undefined type, found `NXStream'
cpp-precomp: warning: errors during smart preprocessing, retrying in basic mode
make: *** [Python/dynload_next.o] Error 1