[Gdal-dev] Error in building GDAL-CSV with jpeg option in MinGW

Frank Warmerdam warmerdam at pobox.com
Tue Nov 11 09:03:03 EST 2003


Hisaji Ono wrote:
> Hello.
> 
> In building GDAL-CVS(20031110) in MinGW with MSYS, I've got following error
> message in JPEG's frmts.
> 
> 
> ./configure --with-libz=internal --with-png=internal --with-libtiff=internal
> --with-geotiff-internal --without-jpeg --without-pg --without-python
> 
> 
> ../../jpeg/libjpeg/jmorecfg.h:161: conflicting types for `INT32'
> c:/mingw/include/basetsd.h:52: previous declaration of `INT32'
> tif_jpeg.c: In function `JPEGDecodeRaw':
> tif_jpeg.c:820: warning: suggest parentheses around assignment used as truth
> value
> make[3]: *** [../../o/tif_jpeg.o] Error 1
> make[3]: Leaving directory
> `/home/Administrator/gdal-cvs-031110/frmts/gtiff/libtiff'
> make[2]: *** [lib-tiff] Error 2
> make[2]: Leaving directory `/home/Administrator/gdal-cvs-031110/frmts/gtiff'
> make[1]: *** [gtiff-install-obj] Error 2
> make[1]: Leaving directory `/home/Administrator/gdal-cvs-031110/frmts'
> make: *** [frmts-target] Error 2
> 
>   Without JPEG(./configure ... --without-jpeg ...), I could complete this
> building process.

Hisaji,

I would suggest hand editing gdal/frmts/jpeg/libjpeg/jmorecfg.h's INT32
definition to match the one in mingw/include/basetsd.h and then recompile.

Best regards,

-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent





More information about the Gdal-dev mailing list