[Pythonmac-SIG] building pil jpeg has no symbols

Calvin calvin@xmission.com
Mon, 16 Sep 2002 13:35:33 -0600 (MDT)


I have been trying to install PIL and I keep running into the following 
problem when doing make.  I've been trying to build PIL with jpeg libs
and cannot do it.  

Currenty I am running Mac OS X 10.2 with development tools installed.  
Python, mysql, mysqldb, readline, zlib all installed fine and work.

Here is the error at the end of libImaging/make

ranlib libImaging.a
ranlib: file: libImaging.a(Dib.o) has no symbols
ranlib: file: libImaging.a(JpegDecode.o) has no symbols
ranlib: file: libImaging.a(JpegEncode.o) has no symbols
gcc -o coretest coretest.o libImaging.a -lz  -lm


I have IJG jpeg installed in /usr/local but no matter what I do, I cannot
get it to be recognized when I ./configure, make in libImaging.  the
configure just zooms by the config lines for JpegEncode, JpegDecode and
then it fails to build the jpeg bits on make.

I can install and import PIL, but it has no jpeg, which is a problem doing
thumbnails and the like on webpages.

If anyone has ANY ideas on what to try, please let me know.  I've fiddled
with configure and Makefile options and nothing seems to work.  Any help
would be appreciated.

below is the output from the make test and make install from building
jpeg.

thanks for your help.

-calvin

[:~/Desktop/mac_osx_setupunix/jpeg-6b] calvin% make test
rm -f testout*
./djpeg -dct int -ppm -outfile testout.ppm  ./testorig.jpg
./djpeg -dct int -bmp -colors 256 -outfile testout.bmp  ./testorig.jpg
./cjpeg -dct int -outfile testout.jpg  ./testimg.ppm
./djpeg -dct int -ppm -outfile testoutp.ppm ./testprog.jpg
./cjpeg -dct int -progressive -opt -outfile testoutp.jpg ./testimg.ppm
./jpegtran -outfile testoutt.jpg ./testprog.jpg
cmp ./testimg.ppm testout.ppm
cmp ./testimg.bmp testout.bmp
cmp ./testimg.jpg testout.jpg
cmp ./testimg.ppm testoutp.ppm
cmp ./testimgp.jpg testoutp.jpg
cmp ./testorig.jpg testoutt.jpg
[:~/Desktop/mac_osx_setupunix/jpeg-6b] calvin% sudo make install
/usr/bin/install -c cjpeg /usr/local/bin/cjpeg
/usr/bin/install -c djpeg /usr/local/bin/djpeg
/usr/bin/install -c jpegtran /usr/local/bin/jpegtran
/usr/bin/install -c rdjpgcom /usr/local/bin/rdjpgcom
/usr/bin/install -c wrjpgcom /usr/local/bin/wrjpgcom
/usr/bin/install -c -m 644 ./cjpeg.1 /usr/local/man/man1/cjpeg.1
/usr/bin/install -c -m 644 ./djpeg.1 /usr/local/man/man1/djpeg.1
/usr/bin/install -c -m 644 ./jpegtran.1 /usr/local/man/man1/jpegtran.1
/usr/bin/install -c -m 644 ./rdjpgcom.1 /usr/local/man/man1/rdjpgcom.1
/usr/bin/install -c -m 644 ./wrjpgcom.1 /usr/local/man/man1/wrjpgcom.1
[thearthole:~/Desktop/mac_osx_setupunix/jpeg-6b] calvin% sudo make
install-lib
/usr/bin/install -c -m 644 jconfig.h /usr/local/include/jconfig.h
/usr/bin/install -c -m 644 ./jpeglib.h /usr/local/include/jpeglib.h
/usr/bin/install -c -m 644 ./jmorecfg.h /usr/local/include/jmorecfg.h
/usr/bin/install -c -m 644 ./jerror.h /usr/local/include/jerror.h
/usr/bin/install -c -m 644 libjpeg.a /usr/local/lib/libjpeg.a