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

Andrey Kiselev dron at ak4719.spb.edu
Wed Feb 18 05:41:19 EST 2004


On Wed, Feb 18, 2004 at 11:30:47AM +0100, Alessandro Amici wrote:
> Mario, FYI jpeg support is broken under mingw by a double definition
> of INT32, use './configure --with-jpeg=no'

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


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



More information about the Gdal-dev mailing list