[Image-SIG] PIL compile problem

John Angelmo john@veidit.net
Wed, 14 Nov 2001 04:29:53 +0100


in libImaging I run this confing line:

./configure  --with-jpeg=/usr/local/lib --with-zlib=/usr/local/lib

output:

creating cache ./config.cache
checking for --without-gcc... no
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for ranlib... ranlib
checking for ar... ar
checking MACHDEP... freebsd4
checking for jpeg_destroy_compress in -ljpeg... yes
checking for deflate in -lz... yes
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for inline... inline
checking whether byte ordering is bigendian... no
checking size of char... 1
checking size of short... 2
checking size of int... 4
checking size of long... 4
checking size of float... 4
checking size of double... 8
checking for working const... yes
checking for prototypes... yes
checking for unistd.h... yes
checking for getpagesize... yes
checking for working mmap... yes
updating cache ./config.cache
creating ./config.status
creating Makefile
creating ImConfig.h

but when I run make I get this error:

gcc -o coretest coretest.o libImaging.a -lz -ljpeg  -lm
/usr/libexec/elf/ld: cannot find -ljpeg
*** Error code 1

Stop in /root/Imaging-1.1.2/libImaging.

I know that libjpeg is installed in /usr/local/lib
/usr/local/lib/libjpeg.a
/usr/local/lib/libjpeg.so
/usr/local/lib/libjpeg.so.9

So does anyone know what I'm doing wrong?

/John