[Gdal-dev] Compling GDAL 1.3.1 in MinGW

Mike Leahy mgleahy at golden.net
Thu Dec 8 18:07:32 EST 2005


Hello list,

I'm hoping some of the other users out there that have has success with
this might be able to give me some advice.  I've been trying to compile
GDAL with MinGW/MSYS, and I'm currently running into trouble when the
make process hits tif_jpeg.c.  I've configured GDAL with the following
options:


./configure --prefix=/usr/local --with-jpeg=internal --with-png=internal
--with-tiff=internal --with-libz=internal --with-sqlite=/c/mingw
--without-unix-stdio-64


And I get the following errors when I compile:


In file included from ../../jpeg/libjpeg/jpeglib.h:24,
                 from tif_jpeg.c:75:
../../jpeg/libjpeg/jconfig.h:12:1: warning: "HAVE_STDLIB_H" redefined
In file included from tif_config.h:2,
                 from tiffconf.h:3,
                 from tiff.h:30,
                 from tiffio.h:33,
                 from tiffiop.h:60,
                 from tif_jpeg.c:27:
../../../port/cpl_config.h:75:1: warning: this is the location of the
previous definition
In file included from tif_jpeg.c:75:
../../jpeg/libjpeg/jpeglib.h:94: error: syntax error before "boolean"
../../jpeg/libjpeg/jpeglib.h:94: warning: no semicolon at end of struct
or union
../../jpeg/libjpeg/jpeglib.h:95: warning: type defaults to `int' in
declaration of `JQUANT_TBL'
../../jpeg/libjpeg/jpeglib.h:95: warning: data definition has no type or
storage class
../../jpeg/libjpeg/jpeglib.h:110: error: syntax error before "boolean"
../../jpeg/libjpeg/jpeglib.h:110: warning: no semicolon at end of struct
or union
../../jpeg/libjpeg/jpeglib.h:111: warning: type defaults to `int' in
declaration of `JHUFF_TBL'
../../jpeg/libjpeg/jpeglib.h:111: warning: data definition has no type
or storage class
../../jpeg/libjpeg/jpeglib.h:160: error: syntax error before "boolean"
../../jpeg/libjpeg/jpeglib.h:160: warning: no semicolon at end of struct
or union
../../jpeg/libjpeg/jpeglib.h:175: error: syntax error before '*' token
../../jpeg/libjpeg/jpeglib.h:175: warning: type defaults to `int' in
declaration of `quant_table'
../../jpeg/libjpeg/jpeglib.h:175: warning: data definition has no type
or storage class
../../jpeg/libjpeg/jpeglib.h:179: error: syntax error before '}' token
../../jpeg/libjpeg/jpeglib.h:179: warning: type defaults to `int' in
declaration of `jpeg_component_info'
../../jpeg/libjpeg/jpeglib.h:179: warning: data definition has no type
or storage class
../../jpeg/libjpeg/jpeglib.h:254: error: syntax error before "boolean"
../../jpeg/libjpeg/jpeglib.h:254: warning: no semicolon at end of struct
or union
../../jpeg/libjpeg/jpeglib.h:259: error: syntax error before '}' token
../../jpeg/libjpeg/jpeglib.h:269: error: syntax error before "boolean"
../../jpeg/libjpeg/jpeglib.h:269: warning: no semicolon at end of struct
or union

etc...

I've been digging around, and found some stuff about different ways of
declaring booleans when compiling GDAL with MinGW (e.g., int vs.
unsigned char), but from what I can tell after looking at the code this
seems to have been taken care of already (at least in GDAL-1.3.1).  Is
there be anything else I should try?

Regards,
Mike



More information about the Gdal-dev mailing list