I tried to compile ImageMagic-6.4.8-3 with MinGW32, gnuwin32 under WindowsXP.
I used the following configuration.
( I referred to http://www.imagemagick.org/script/advan ... .php#mingw )
Code: Select all
./configure --without-perl --disable-largefile --without-x --disable-shared -
-without-threads
Code: Select all
Host system type: i686-pc-mingw32
Build system type: i686-pc-mingw32
Option Value
-------------------------------------------------------------------------------
Shared libraries --enable-shared=no no
Static libraries --enable-static=yes yes
Module support --with-modules=no no
GNU ld --with-gnu-ld=yes yes
Quantum depth --with-quantum-depth=16 16
High Dynamic Range Imagery
--enable-hdri=no no
Delegate Configuration:
BZLIB --with-bzlib=yes yes
Autotrace --with-autotrace=no no
DJVU --with-djvu=yes no
DPS --with-dps=yes no
FlashPIX --with-fpx=yes no
FontConfig --with-fontconfig=no no
FreeType --with-freetype=yes no (failed tests)
GhostPCL None pcl6 (unknown)
GhostXPS None gxps (unknown)
Ghostscript None gswin32c (unknown)
result_ghostscript_font_dir='none'
Ghostscript fonts --with-gs-font-dir=default
Ghostscript lib --with-gslib=yes no
Graphviz --with-gvc=yes no
JBIG --with-jbig=yes yes
JPEG v1 --with-jpeg=yes yes
JPEG-2000 --with-jp2=yes no
LCMS --with-lcms=yes yes
LQR --with-lqr=yes no
Magick++ --with-magick-plus-plus=yes yes
OpenEXR --with-openexr=yes no
PERL --with-perl=no no
PNG --with-png=yes yes
RSVG --with-rsvg=no no
TIFF --with-tiff=yes yes
Windows fonts --with-windows-font-dir=
WMF --with-wmf=no no
X11 --with-x=no no
XML --with-xml=no no
ZLIB --with-zlib=yes yes
X11 Configuration:
X_CFLAGS =
X_PRE_LIBS =
X_LIBS =
X_EXTRA_LIBS =
Options used to compile and link:
PREFIX = /usr/local
EXEC-PREFIX = /usr/local
VERSION = 6.4.8
CC = gcc -std=gnu99
CFLAGS = -g -O2 -Wall -W
MAGICK_CFLAGS = -g -O2 -Wall -W
CPPFLAGS = -I/usr/local/include/ImageMagick -D_LIB
PCFLAGS = -D_LIB
DEFS = -DHAVE_CONFIG_H
LDFLAGS = -Lc:/Progra~1/GnuWin32/lib -L/d/temp/ImageMagick-6.4.8-3/magick/.libs -L/d/temp/ImageMagick-6.4.8-3/magick -L/d/temp/ImageMagick-6.4.8-3/wand
MAGICK_LDFLAGS = -L/usr/local/lib -Lc:/Progra~1/GnuWin32/lib -L/d/temp/ImageMagick-6.4.8-3/magick/.libs -L/d/temp/ImageMagick-6.4.8-3/magick -L/d/temp/ImageMagick-6.4.8-3/wand
LIBS = -lMagickCore -ljbig -llcms -ltiff -ljpeg -lpng -lbz2 -lz -lgdi32 -lm
CXX = g++
CXXFLAGS = -g -O2 -Wall -W
Code: Select all
$ make
make all-am
make[1]: Entering directory `/d/temp/ImageMagick-6.4.8-3'
/bin/sh ./libtool --silent --tag=CC --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I./config -I./ltdl -I./ltdl -Ic:/Progra~1/GnuWin32/include -D_LIB -I/d/temp/ImageMagick-6.4.8-3/magick -I/d/temp/ImageMagick-6.4.8-3/wand -g -O2 -Wall -W -MT magick/magick_libMagickCore_la-animate.lo -MD -MP -MF magick/.deps/magick_libMagickCore_la-animate.Tpo -c -o magick/magick_libMagickCore_la-animate.lo `test -f 'magick/animate.c' || echo './'`magick/animate.c
mv -f magick/.deps/magick_libMagickCore_la-animate.Tpo magick/.deps/magick_libMagickCore_la-animate.Plo
/bin/sh ./libtool --silent --tag=CC --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I./config -I./ltdl -I./ltdl -Ic:/Progra~1/GnuWin32/include -D_LIB -I/d/temp/ImageMagick-6.4.8-3/magick -I/d/temp/ImageMagick-6.4.8-3/wand -g -O2 -Wall -W -MT magick/magick_libMagickCore_la-blob.lo -MD -MP -MF magick/.deps/magick_libMagickCore_la-blob.Tpo -c -o magick/magick_libMagickCore_la-blob.lo `test -f 'magick/blob.c' || echo './'`magick/blob.c
magick/blob.c:120: error: field `properties' has incomplete type
magick/blob.c: In function `FileToBlob':
magick/blob.c:793: error: storage size of 'file_info' isn't known
magick/blob.c:799: warning: implicit declaration of function `_fstat64'
magick/blob.c:793: warning: unused variable `file_info'
magick/blob.c: In function `FileToImage':
magick/blob.c:945: error: storage size of 'file_info' isn't known
magick/blob.c:945: warning: unused variable `file_info'
magick/blob.c: In function `ImageToFile':
magick/blob.c:1478: error: storage size of 'file_info' isn't known
magick/blob.c:1478: warning: unused variable `file_info'
magick/blob.c: In function `InjectImageBlob':
magick/blob.c:1746: error: storage size of 'file_info' isn't known
magick/blob.c:1746: warning: unused variable `file_info'
magick/blob.c: In function `OpenBlob':
magick/blob.c:2371: error: dereferencing pointer to incomplete type
magick/blob.c:2379: error: dereferencing pointer to incomplete type
magick/blob.c: At top level:
magick/blob.c:3670: warning: unused parameter 'map'
magick/blob.c:3670: warning: unused parameter 'length'
magick/blob.c:1959: warning: unused parameter 'file'
magick/blob.c:1959: warning: unused parameter 'mode'
magick/blob.c:1960: warning: unused parameter 'offset'
magick/blob.c:1960: warning: unused parameter 'length'
make[1]: *** [magick/magick_libMagickCore_la-blob.lo] Error 1
make[1]: Leaving directory `/d/temp/ImageMagick-6.4.8-3'
make: *** [all] Error 2
Thanks in advance~