Page 1 of 1

Error Building ImageMagick With MinGW

Posted: 2012-06-04T09:42:35-07:00
by Guest
I am trying to install ImageMagick on my computer with MinGW for use with Magick++, but I keep getting the same error messages every time I try. My computer has both Windows XP and Windows 7 32 bit, and I get the same error regardless of operating system. Hopefully this is something simple to fix.

Code: Select all

$ make
make  all-am
make[1]: Entering directory `/e/users/user/downloads/imagemagick'
  CC     magick/magick_libMagickCore_la-nt-base.lo
magick/nt-base.c: In function 'NTIs64BitPlatform':
magick/nt-base.c:1021:3: warning: implicit declaration of function 'IsWow64Proce
ss' [-Wimplicit-function-declaration]
magick/nt-base.c: In function 'NTGhostscriptGetString':
magick/nt-base.c:1068:33: error: 'KEY_WOW64_64KEY' undeclared (first use in this
 function)
magick/nt-base.c:1068:33: note: each undeclared identifier is reported only once
 for each function it appears in
magick/nt-base.c:1075:15: error: 'KEY_WOW64_32KEY' undeclared (first use in this
 function)
magick/nt-base.c: In function 'NTResourceToBlob':
magick/nt-base.c:1867:3: warning: statement with no effect [-Wunused-value]
make[1]: *** [magick/magick_libMagickCore_la-nt-base.lo] Error 1
make[1]: Leaving directory `/e/users/user/downloads/imagemagick'
make: *** [all] Error 2

Re: Error Building ImageMagick With MinGW

Posted: 2012-06-04T09:54:48-07:00
by magick
We fixed the problem you reported in the ImageMagick Subversion trunk. An updated distribution with the patch will be available within a day or two. Thanks.

You can fix your distribution by protecting the statements with
  • #if defined(KEY_WOW64_32KEY)
    ....
    #endif