[Gdal-dev] Problems building gdal dll with libtool on MinGW

Andrey Kiselev dron at ak4719.spb.edu
Wed Feb 18 05:55:45 EST 2004


On Wed, Feb 18, 2004 at 01:41:19PM +0300, Andrey Kiselev wrote:
> I have fixed this in the GDAL tree yesterday, but those who want to
> link against the external JPEG library should make the following changes
> in the JPEG sources:
> 
> --- jmorecfg.h	1997-08-10 03:58:56.000000000 +0400
> +++ jmorecfg.h.new	2004-02-17 13:48:56.000000000 +0300
> @@ -158,8 +158,10 @@
>  /* INT32 must hold at least signed 32-bit values. */
>  
>  #ifndef XMD_H			/* X11/xmd.h correctly defines INT32 */
> +#ifndef _BASETSD_H
>  typedef long INT32;
>  #endif
> +#endif
>  
>  /* Datatype used for image dimensions.  The JPEG standard only supports
>   * images up to 64K*64K due to 16-bit fields in SOF markers.  Therefore

On other hand the following trick in jpegdataset.cpp should also work:

#ifdef _BASETSD_H
#define XMD_H
#endif


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



More information about the Gdal-dev mailing list