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

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


I've been trying (and failing spectacularly) to get libtiff to compile with libjpeg (both from the CVS on maptools.org)

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
In file included from tif_jpeg.c:75:
C:/msys/1.0/local/include/jpeglib.h:94: error: syntax error before "boolean"
C:/msys/1.0/local/include/jpeglib.h:94: warning: no semicolon at end of
struct or union
C:/msys/1.0/local/include/jpeglib.h:95: warning: type defaults to `int'
in declaration of `JQUANT_TBL'
C:/msys/1.0/local/include/jpeglib.h:95: warning: data definition has no
type or storage class
C:/msys/1.0/local/include/jpeglib.h:110: error: syntax error before
C:/msys/1.0/local/include/jpeglib.h:110: warning: no semicolon at end of
struct or union

It goes on like that for a while then starts complaining about stuff in the tif_jpeg.c file itself.

Has anyone else (Norman, are you out there?) gotten this configuration to work?


Thom DeCarlo
Eat well, stay fit, die anyway.