imagemagick would not compile in win 7 64 in vs2008 prof

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
kochhar
Posts: 2
Joined: 2013-11-26T23:01:10-07:00
Authentication code: 6789

imagemagick would not compile in win 7 64 in vs2008 prof

Post by kochhar »

I am trying to compile ImageMagick-6.8.7-7-Q16-x64-dll under win 7 64 in vs2008 professional. I have followed the instructions to compile configure and unchecked X11 and chose the 64 bit option in config. I keep getting the error

Error 2 error C2143: syntax error : missing ';' before 'type' c:\2013\ImageMagick-6.8.7\magick\magick-baseconfig.h 197 CORE_magick

Error 340 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\2013\ImageMagick-6.8.7\magick\magick-config.h 24 CORE_Magick++

Error 367 error C2144: syntax error : 'long' should be preceded by ';' c:\2013\ImageMagick-6.8.7\magick\magick-baseconfig.h 197 CORE_Magick++

I will appreciate any help. Thank you.

Kochhar
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: imagemagick would not compile in win 7 64 in vs2008 prof

Post by dlemstra »

Did you set the platform to x64 instead of win32? You should not uncheck the X11 stubs option. After you open the solution you should edit magick-config.h and undefine the MAGICKCORE_X11_DELEGATE define.

I am now working on an extra option in the configure program that will allow you to disable X11 completely. I hope to get this in before the next release.
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
kochhar
Posts: 2
Joined: 2013-11-26T23:01:10-07:00
Authentication code: 6789

Re: imagemagick would not compile in win 7 64 in vs2008 prof

Post by kochhar »

I had commented the line #define MAGICKCORE_X11_DELEGATE rather than #undef MAGICKCORE_X11_DELEGATE. After changing It compiled without any problem. Thank you.
Post Reply