The message "warning: `HasPNG' redefined" is what is causing the
configure test to fail. Apparently compiler warnings are treated as
One way around this is to edit /usr/local/include/magick/config.h and
comment out the
/* #define HasPNG */
since this entry is only used when compiling ImageMagick itself.
ImageMagick should install an abbreviated config.h that only includes
the defines it needs to support using applications.
On Mon, 14 May 2001, Stuart Browne wrote:
> Probably the wrong list, but this is bugging me.
> When trying to compile 0.6.5 on a Linux box, the one component I want to
> work fails.
> When using ImageMagick 5.3.3, and libwmf 0.1.21, freetype 1.3.1 (and 2.0.2),
> libpng 1.0.8 (rh package), and trying to:
> ./configure --with-Magick=/usr/local
> This occurs:
> configure: warning: libwv will not have wmf to png support: see README
> The only part I can see of which might support this failure are these lines:
> checking for Magick-config... /usr/local/bin/Magick-config
> checking for magick/magick.h... no
> This confuses me as:
> ls -al /usr/local/include/magick/magick.h
> -rw-r--r-- 1 root root 2034 May 14 15:35
> When running
> "./configure --with-wmf --with-ttf --with-ttf-fontpath="/usr/fonts/"" in
> ImageMagick 5.3.3 source tree, it reports:
> Option Configure option Configured value
> BZLIB --with-bzlib=yes yes
> DPS --with-dps=yes no
> FlashPIX --with-fpx=yes no
> HDF --with-hdf=yes no
> JBIG --with-jbig=yes no
> JPEG --with-jpeg=yes yes
> LCMS --with-lcms=yes no
> PNG --with-png=yes yes
> TIFF --with-tiff=yes yes
> FreeType 2.0 --with-ttf=yes yes
> TTF Path --with-ttf-fontpath= "/usr/fonts/"
> XML --with-xml=yes no
> WMF --with-wmf=yes yes
> ZLIB --with-zlib=yes yes
> As it reports that wmf is found, and is using them, and png is also found
> and is using that, and manually running the 'convert' binary passing a wmf
> and png name converts a the file, I am wondering why the configure test in
> the WV structure fails.
> The entries from config.log (of wv-0.6.5) related to the ImageMagick are:
> configure:4178: checking for Magick-config
> configure:4257: checking for magick/magick.h
> gcc -E -I/usr/local/include -DHAVE_CONFIG_H -I/usr/local/include/freetype2
> -I/usr/local/include/freetype2 -D_REENTRANT -D_FILE_OFFSET_BITS=64 -I/usr/lo
> cal/include -I/usr/X11R6/include conftest.c >/dev/null 2>conftest.out
> In file included from /usr/local/include/magick/api.h:75,
> from /usr/local/include/magick/magick.h:67,
> from configure:4263:
> /usr/local/include/magick/config.h:256: warning: `HasPNG' redefined
> confdefs.h:9: warning: this is the location of the previous definition
> configure: failed program was:
> #line 4262 "configure"
> #include "confdefs.h"
> #include <magick/magick.h>
> Anyway. I was wondering if anybody had seen or overcome this issue. As I'm
> not an experienced C coder, this has me somewhat baffled.
> NOTE: The wv-0.6.5 documentation doesn't mention what versions things were
> tested with, so I had no ground to fall-back upon.
> Thank you.
> Stuart J. Browne
> Wvware-devel mailing list