Page 1 of 1

Build issue on MinGW with recent ImageMagick versions

Posted: 2009-06-23T04:22:37-07:00
by chauk-mean
Hi,

I've been able to build successfully ImageMagick-6.5.2-7 on MinGW stable release (gcc-3.4.5) + MSYS-1.0.11-rc1 on Windows XP. Unfortunately, I cannot build IM anymore with recent versions (e.g. 6.5.3-10). Here is the result :

/bin/sh ./libtool --silent --tag=CC --mode=compile gcc -std=gnu99 -DHAVE_CONF
IG_H -I. -I./config -I./ltdl -I./ltdl -I/mingw/include/freetype2 -I/mingw/incl
ude -IC:/opt/gtk+-2.16.1/include -D_LIB -D_MT -g -O2 -Wall -W -MT coders/magick
_libMagickCore_la-avi.lo -MD -MP -MF coders/.deps/magick_libMagickCore_la-avi.Tp
o -c -o coders/magick_libMagickCore_la-avi.lo `test -f 'coders/avi.c' || echo '.
/'`coders/avi.c
In file included from c:/mingw/include/jpeglib.h:26,
from coders/avi.c:78:
c:/mingw/include/jmorecfg.h:227: error: conflicting types for 'boolean'
c:/mingw/include/rpcndr.h:52: error: previous declaration of 'boolean' was here
make[1]: *** [coders/magick_libMagickCore_la-avi.lo] Error 1
make[1]: Leaving directory `/c/HOME/mingw/ImageMagick-6.5.3-10'
make: *** [all] Error 2

Thanks for any help.
Cheers.

Chauk-Mean.

Re: Build issue on MinGW with recent ImageMagick versions

Posted: 2009-06-23T05:57:05-07:00
by magick
The problem is a conflict in header files under MinGW and has little to do with ImageMagick. You could disable JPEG support with

./configure --without-jpeg

or patch the conflicting header files. Otherwise you will need to post a bug report to the MinGW developers to get the problem fixed.

Re: Build issue on MinGW with recent ImageMagick versions

Posted: 2009-06-23T09:21:36-07:00
by chauk-mean
> The problem is a conflict in header files under MinGW and has little to do with ImageMagick. You could disable JPEG support with
>./configure --without-jpeg

I have been able to build a previous version of ImageMagick with JPEG support, so I think it's related with ImageMagick.

> Otherwise you will need to post a bug report to the MinGW developers to get the problem fixed.

OK. I'll do it.