Error Building ImageMagick With MinGW

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
Guest
Posts: 1
Joined: 2012-06-04T09:31:01-07:00
Authentication code: 13

Error Building ImageMagick With MinGW

Post 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
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Error Building ImageMagick With MinGW

Post 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
Post Reply