Using ImageMagick with existing VS2008 project

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
Glenstorm

Using ImageMagick with existing VS2008 project

Post by Glenstorm »

I've searched around on the internet for this issue but all results point to using the button project as a template for a new program.

But that doesn't apply in my case. I'm trying to integrate ImageMagick into an existing VS2008 project file. I can't start another project just for ImageMagick.

<More details>
I installed the windows binary version of the imagemagick (I'm using Magick++ btw) but the VS2008 project does not directly recognise the includes. Hence I resolved to copying over the include and lib folders from [folder where magick was installed] to [folder hosting the project I'm currently working on]. Also included the include and lib folders in the project file (as well as the two .lib files CORE_RL_magick_.lib and CORE_RL_Magick++_.lib in the Additional Dependencies part)

It compiles fine. But when it runs the program crashes. More poking around the crash info said its because it can't find the CORE_RL_Magick++_.dll. Where the hell is it? And how do I tell my project where to find it?

<More more details>
The error showed up when I tried to use the [ImageInstance].read() function. It doesn't crash when I define the instance like -> Magick::Image myImage();
Glenstorm

Re: Using ImageMagick with existing VS2008 project

Post by Glenstorm »

Not one reply? Disappointed.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Using ImageMagick with existing VS2008 project

Post by magick »

You don't have to use the Button workspace but do review the project settings and determine which ones are relevant for your VS project. Also, try building Release rather than Debug. See if that fixes the problem.
Post Reply