IM/MW installation/linking issues
Posted: 2010-06-20T01:51:58-07:00
Hi
I am trying to install ImageMagick to use with MagickWand under Visual Studio 9.0.
I began by getting a binary installer and getting ImageMagick to work. That worked OK. I tried running a program containing the example code wand.c and found this install had come with no source files.
I re-downloaded ImageMagick 6.6.2, and managed to find a file which does come with some .c and .h files in folders called /wand and /magick.
It also comes with a file called Install-windows.txt which talks all the time about "VisualMagick" but I have nothing called that. Nor does the whole ImageMagick-6.6.2-6 tree include any .dsw or .sln files. (It talks about a configure directory containing configure.sln ???).
I tried just to copy the /wand and /magick folders to my /include folder, but it then won't compile a project with the wand.c code because it says an error about not finding a ghostscript header file. I cannot even find on the web a source code for ghostscript that is not a tarball (*and I never wanted to install ghostscript*). I commented out the hasGS #define in magick-config.h but this had no effect! Clearly there is something else that needs rebuilding first (???).
My preferred way of doing things would be to make ImageMagick a static library that lives in my application. I thought I might struggle a bit with linking it in VS (if there is a guide to that, rather than just some command-line compiler switches, that would also be useful), but it's seeming like I can't get even that far...
Any help appreciated.
Warwick
I am trying to install ImageMagick to use with MagickWand under Visual Studio 9.0.
I began by getting a binary installer and getting ImageMagick to work. That worked OK. I tried running a program containing the example code wand.c and found this install had come with no source files.
I re-downloaded ImageMagick 6.6.2, and managed to find a file which does come with some .c and .h files in folders called /wand and /magick.
It also comes with a file called Install-windows.txt which talks all the time about "VisualMagick" but I have nothing called that. Nor does the whole ImageMagick-6.6.2-6 tree include any .dsw or .sln files. (It talks about a configure directory containing configure.sln ???).
I tried just to copy the /wand and /magick folders to my /include folder, but it then won't compile a project with the wand.c code because it says an error about not finding a ghostscript header file. I cannot even find on the web a source code for ghostscript that is not a tarball (*and I never wanted to install ghostscript*). I commented out the hasGS #define in magick-config.h but this had no effect! Clearly there is something else that needs rebuilding first (???).
My preferred way of doing things would be to make ImageMagick a static library that lives in my application. I thought I might struggle a bit with linking it in VS (if there is a guide to that, rather than just some command-line compiler switches, that would also be useful), but it's seeming like I can't get even that far...
Any help appreciated.
Warwick