Hello,
I started working with ImageMagick under VC++ and wonder where to get debug libs of the ImageMagick libs. I have a project working fine in release mode but throwing runtime exception in debug mode - probably because I link with the release versions of the libs.
Thanks in advance,
Nicola
P.S.: sorry for the multi-post
Debug libs
Re: Debug libs
You will need to compile ImageMagick from source yourself to create debug versions of the library. We already maintain 5 different releases of the Windows binaries and are not inclined to support any more.
Re: Debug libs
Hi,
thank you for your fast reply. I will see whether I can handle compiling debug versions by myself. Are there available any solutions/projects for VS 2005?
thank you for your fast reply. I will see whether I can handle compiling debug versions by myself. Are there available any solutions/projects for VS 2005?
Re: Debug libs
Yes, grab the Windows source distribution from http://www.imagemagick.org/script/insta ... hp#windows.
Re: Debug libs
OK, I think building a debug version of the libs and linking those to my project worked fine. But I still get a runtime error when running my app in debug mode (running fine in release mode):
Microsoft C++ exception: Magick::ErrorMissingDelegate at memory location 0x0012cab4..
Do you have an idea why and/or how to fix this? I'd really like to debug my app...
Thank you for support till now and in advance
EDIT: The exception is thrown, when trying to init an Image object with a BMP:
Microsoft C++ exception: Magick::ErrorMissingDelegate at memory location 0x0012cab4..
Do you have an idea why and/or how to fix this? I'd really like to debug my app...
Thank you for support till now and in advance
EDIT: The exception is thrown, when trying to init an Image object with a BMP:
Code: Select all
Magick::InitializeMagick( argv[0] );
Magick::Image cMagickImage( "black.bmp" );
Re: Debug libs
Did you set MAGICK_HOME? See http://magick.imagemagick.org/script/ad ... lation.php.
Re: Debug libs
Hi,
I'm not sure whether I understood everything, but I did the following:
1. Put all the XML files into the .exe directory
2. Added to the PATH-variable: ...\ImageMagick\VisualMagick\bin; ...ImageMagick\coders
3. Added an environment variable MAGICK_HOME with ...ImageMagick\coders
Unfortunately, nothing changed anything to the thrown exception.
I'm not sure whether I understood everything, but I did the following:
1. Put all the XML files into the .exe directory
2. Added to the PATH-variable: ...\ImageMagick\VisualMagick\bin; ...ImageMagick\coders
3. Added an environment variable MAGICK_HOME with ...ImageMagick\coders
Unfortunately, nothing changed anything to the thrown exception.
Re: Debug libs
An easy solution is to put *.xml, *.exe, and *.dll all in the same folder. To determine where ImageMagick is looking for its configuration files and modules, type
- convert -debug configure,module logo: logo.png
Re: Debug libs
I thought I've already done so, but obviously I missed something the first time. Now it works. Thank you very much!magick wrote:An easy solution is to put *.xml, *.exe, and *.dll all in the same folder. To determine where ImageMagick is looking for its configuration files and modules, type
- convert -debug configure,module logo: logo.png