Page 1 of 1

Compiling for 64bit using Visual Studio, or help with JMagic

Posted: 2009-04-16T11:17:09-07:00
by GreatlandTom
Hello,

I was wondering if anyone out there could PLEASE help me get Image Magick compiling for 64bit? I followed the instructions and was able to build fine for 32bit. As soon as I do a clean, set the project to build for 64bit, and build I start getting a ton of errors. For now I will only be concerned with the first errors:

Error 1 fatal error C1189: #error : Something is very very wrong. This header must only be used under Visual C++. c:\imagemagick-6.5.1\jpeg\jmorecfg.h 189

My real goal here is to get a 64bit version of jmagick built so I can run on 64bit JBoss. When compiling JMagick, I got stuck when I was missing the following file 'CORE_RL_magick_.lib'. The docs state that there should be lib and include directories in the folder where you installed ImageMagick. So first, I installed the 64bit version of ImageMagick and those directories do not exist. It was at this point that I went down the path of trying to compile Image Magick using Visual Studio 2005. FYI, I have installed the 64 bit support for Visual Studio. While I realize that this is not a JMagick forum, if anyone has some words of wisdom I'd be greatfull! Has anyone ever tried building/running Image Magick and JMagick for 64bit architecture? There is no relevant information that I could find on the net! Maybe it is not even possible?

Thanks in advance,
Tom

Re: Compiling for 64bit using Visual Studio, or help with JMagic

Posted: 2009-04-16T11:51:55-07:00
by magick
We build ImageMagick under Visual Studio 2008 64-bit to generate the 64-bit ImageMagick Windows binary distributions frequently without complaint. We first build the 32-bit version and then set the configuration manager to 64-bit and click on Build. As expected, no compiler exceptions are thrown. Its been awhile but we have built under Visual 2003 Professional as well. Don't forget to set the OpenMP language option if you want a performance increase.

Re: Compiling for 64bit using Visual Studio, or help with JMagic

Posted: 2009-04-16T12:31:27-07:00
by GreatlandTom
Thanks Magick! I'll try it in Studio 2008. Just incase it is relevant, I'm using ImageMagick-6.5.1.