Using ImageMagick with existing VS2008 project
Posted: 2010-08-31T00:14:04-07:00
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();
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();