I'm trying to write a sample ImageMagick program in Visual Studio 2010. I have binary distribution of ImageMagick already installed on my system as I can use command line interface of ImageMagick.
However, when I try to include "Magick++.h" in my C++ program, it says it can't open source file.
I found the instructions on compiling and building ImageMagick from source, but is it possible to change my visual studio project settings so it can pick necessary references/libraries from the already installed version of ImageMagick?
I am by no means an expert, but here is what worked for me:
Using Windows7 Professional and Visual C++ Express 2010...
I checked the
Install development headers and libraries for C and C++
At the end of the install, I got these two folders.
Magick++.h
lies insideinclude
.Be sure to set up your projects
Additional Library Locations
andAdditional Include Directories
and you should be able to compile your program.Additionally: The manual suggests you need to do this for your program to work, but I did not and it still worked:
And during my brief test, I found that
Magick::Image::Magick()
which changes image formats does not work in Debug mode. It does work in Release mode though.