2005.05.18 15:38 "[Tiff] Another libtiff+libjpeg problem", by Thom DeCarlo

2005.05.18 15:38 "[Tiff] Another libtiff+libjpeg problem", by Thom DeCarlo


I grabbed the cvs for both libraries this morning. Libjpeg compiles and installs properly, but libtiff fails in tiff_jpeg.c as follows:

if /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.
 -I. -I. -I.   -I/usr/local/include -I/usr/local/include   -g -O2 -Wall
 -MT tif_jpeg.lo -MD -MP -MF ".deps/tif_jpeg.Tpo" -c -o tif_jpeg.lo
 tif_jpeg.c; \
then mv -f ".deps/tif_jpeg.Tpo" ".deps/tif_jpeg.Plo"; else rm -f
 ".deps/tif_jpeg.Tpo"; exit 1; fi
 gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -I/usr/local/include
 -I/usr/local/include -g -O2 -Wall -MT tif_jpeg.lo -MD -MP -MF
 .deps/tif_jpeg.Tpo -c tif_jpeg.c  -DPIC -o .libs/tif_jpeg.o
tif_jpeg.c: In function `JPEGSetupEncode':
tif_jpeg.c:1180: error: `cinfo' undeclared (first use in this function)
tif_jpeg.c:1180: error: (Each undeclared identifier is reported only once
tif_jpeg.c:1180: error: for each function it appears in.)
make[2]: *** [tif_jpeg.lo] Error 1
make[2]: Leaving directory `/cygdrive/c/Svs_dev_C/libtiff/libtiff'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/cygdrive/c/Svs_dev_C/libtiff/libtiff'
make: *** [all-recursive] Error 1

I cannot find any function "JPEGSetupEncode". There is a "OJPEGSetupEncode" but it is nowhere near line 1180.

Anyone know what's happening here?


OBTW, I'm compiling on Cygwin.

Thom DeCarlo
     Is it a bad sign if you spend the day wondering
why there are no laws against what you do for a living?
                                - Dilbert