2005.05.14 13:32 "[Tiff] libtiff+libjpeg on mingw/msys?", by Thom DeCarlo

2005.05.16 05:08 "Re: [Tiff] libtiff+libjpeg on mingw/msys?", by Andrey Kiselev

The libjpeg package compiles and installs properly, but when the libtiff build gets to the file tiff_jpeg.c it starts spewing errors:

if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.
-I. -I. -I.   -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 -g -O2 -Wall
-MT tif_jpeg.lo -MD -MP -MF .deps/tif_jpeg.Tpo -c tif_jpeg.c
-DDLL_EXPORT -DPIC -o .libs/tif_jpeg.o
In file included from C:/msys/1.0/local/include/jpeglib.h:24,
                  from tif_jpeg.c:75:
C:/msys/1.0/local/include/jconfig.h:12:1: warning: "HAVE_STDLIB_H" redefined
In file included from tiffiop.h:33,
                  from tif_jpeg.c:27:
tif_config.h:96:1: warning: this is the location of the previous definition
In file included from C:/msys/1.0/local/include/jpeglib.h:26,
                  from tif_jpeg.c:75:
C:/msys/1.0/local/include/jmorecfg.h:130: error: conflicting types for
error: previous declaration of 'INT32' was here

Yes, this is known problem. I can suggest you to manually edit the jmorecfg.h file from the JPEG lib and remove the INT32 definition.


Andrey V. Kiselev
Home phone: +7 812 5970603 ICQ# 26871517