Building with MSVC++ 2008 Express (w/o MFC)

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
koopa

Building with MSVC++ 2008 Express (w/o MFC)

Post by koopa »

I am attempting my first build of ImageMagick on Windows XP using Microsoft Visual Studio. My aim is to use the Magick++ interface (specifically to gain pixel access and control flow over the command line utilities).

I began by downloading source from the windows directory.
ftp://ftp.imagemagick.org/pub/ImageMagick/windows/ImageMagick-6.4.2-0.7z

I am having difficulties building the pre-build configure project of VisualMagick. I am using Visual C++ 2008 (9.0) Express Edition, and I think my problem is with the Express part. I believe that it lacks MFC (as well as ATL) and that this is required for the configure project. I'm guessing that the rest of ImageMagick is not heavily dependent on MFC so I'm wondering if anyone knows of a way around this roadblock.

Has anyone else experienced this problem lately (I see some old posts)? Is my diagnosis of the problem correct? Is my assumption about few dependencies on MFC correct? Can the configure project binary be provided, or does it not work that way? Can the output of the configure project (MSVC project files?) be provided, or are there to many common permutations for this? Ideas in any direction are greatly appreciated.

-Chris
koopa

Re: Building with MSVC++ 2008 Express (w/o MFC)

Post by koopa »

:?

Assuming that ImageMagick simply doesn't support the Express Editions of Visual Studio, I see these as my options forward:

Use an alternative interface to ImageMagick.
As I have an existing C++ code base and need efficient pixel access, my options here are probably limited.

Purchase a fuller version of Visual Studio.
Expensive, but maybe a worthy investment. Maybe I could even find a workaround for future Express users.

Use an alternative to Visual Studio on Windows XP.
Likely possible, but I'm reluctant to go down this path.

Use an alternative to ImageMagick.
XnView GFL SDK? Others? I have previously played with Independent JPEG Group's JPEG Library 6b (low-level JPEG/JFIF) and Exiv2 (general image file metadata).

Again, any ideas would be greatly appreciated,
Chris
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Building with MSVC++ 2008 Express (w/o MFC)

Post by magick »

ImageMagick & Magick++ compiles without MFC but the configure program and the ImageMagickObject requires it. We might in the future include the workspaces so the configure program is not needed but for now its not available. In the mean-time you could compile under cygwin or Ming.
koopa

Re: Building with MSVC++ 2008 Express (w/o MFC)

Post by koopa »

:(

C'est la vie I guess.

I assumed that the COM+ object depended on (at least) ATL so no surprise I'm out of luck there. Thank you for providing the binary for that in the Windows package, but I don't believe it provides pixel-level access.

I am already familiar with and love the command-line tools so I'll keep pondering this dilemma.

-Chris
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Building with MSVC++ 2008 Express (w/o MFC)

Post by magick »

You can develop against the ImageMagick Window binaries using the MagickCore, MagickWand, Magick++, or PerlMagick API's. In the mean-time, the next release due in a day or two will include the pre-compiled configure program so you can generate Visual workspaces. You should be able to build everything with Visual C++ Express except the ImageMagickObject COM object.
koopa

Re: Building with MSVC++ 2008 Express (w/o MFC)

Post by koopa »

:shock:

I'm feeling a bit manic so either I'll have the full Visual Studio obtained and the project built by morning or I'll crash and wake up to your new version. Thank you Magick Wizard!

-Chris
koopa

Re: Building with MSVC++ 2008 Express (w/o MFC)

Post by koopa »

:)

Thank you, I believe the configure binary is all us Express users would need.

For anyone who needs an solution now or to build the COM+ interface, there exists a trial version of Microsoft Visual Studio 2008 (9.0) Professional Edition.

Visual Studio 2008 Trials
http://msdn.microsoft.com/en-us/vstudio ... 00831.aspx
Visual Studio 2008 Professional Edition 90-Day Trial
http://msdn.microsoft.com/en-us/vs2008/ ... 68305.aspx
VS2008ProEdition90dayTrialENUX1435622.iso (3390 MB)

When building the configure project (6.4.2) with this, I repeatedly received two warnings. My build log is (temporary) posted at http://home.comcast.net/~FileBucket/Ima ... _Build.txt. I added the following to stdafx.h.

Code: Select all

// Building to support what version of Windows?
#define WINVER 0x0500  // target Windows 2000 or above

// Supress this level 3 warning.
#pragma warning(disable : 4996)  // 'deprecated' function called

I'm reluctant to post an executable unsolicited, but if anyone needs the configure binary I'll be happy to do so.

-Chris
Clem

Re: Building with MSVC++ 2008 Express (w/o MFC)

Post by Clem »

Hi Chris,

Excuse my bad english, but do you mean that you are agree to send the configure binary ? I need them and i'm not able to build them since i use VC++ 2008 Express...

Thanks in advance.

Clem,
koopa

Re: Building with MSVC++ 2008 Express (w/o MFC)

Post by koopa »

Clem-

Download and unzip the ImageMagick 6.4.2 Windows source package.
ftp://ftp.imagemagick.org/pub/ImageMagi ... indows.zip

Download my configure binary and place it in ImageMagick-6.4.2\VisualMagick\configure\.
Built for Win2k & up using MSVC 9.0.
http://home.comcast.net/~FileBucket/Ima ... figure.zip

Execute configure.exe and follow the instructions
http://www.imagemagick.org/script/insta ... hp#windows

It was suggested that the configure binary may be included in upcoming versions. Please let me know if this helps (or not) in the interim.

-Chris
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Building with MSVC++ 2008 Express (w/o MFC)

Post by magick »

The configure binary is now part of the Windows source distribution as of ImageMagick 6.4.2-1.
koopa

Re: Building with MSVC++ 2008 Express (w/o MFC)

Post by koopa »

:D

Much thanks for that, not to mention the added features.

-Chris
Post Reply