I would like to use Magick++ API, and at first I've tried using "dll" installer version to install development libraries and headers.
The issue here is that the library can not seem to find the image format module in this simple code (both hardcoded paths are verified and correct):
Magick::InitializeMagick("c:\\Program Files\\ImageMagick-6.8.3-Q8");
Magick::Image magick("C:\\test.png");
the second line throws the exception Magick::ErrorMissingDelegate.
Next I've tried to avoid this issue, by downloading the Windows installer for static build, but the strange thing is that this installer does not even offer to
install development libraries and headers !?!?
Any reason why the static installer wouldn't offer static library with individual loader modules merged into the main static lib?
Any tip to solve my issue?
TIA,
Miroslav
Windows installer issues
Re: Windows installer issues
Go to c:\Program Files\ImageMagick-6.8.3-5\Magick++_demos. Click on the button workspace. Build and execute. Does that work for you? If so, use this workspace as a template for your own custom Magick++ code.
Re: Windows installer issues
Thanks for the tip. Unfortunately, this doesn't work either.
1. Button example crashes on line 61:
button.read( backGround );
Error: Unhandled exception at 0x5a564c5a in button.exe: 0xC0000005: Access violation writing location 0x01d6cfa7.
2. Demo example throws exception:
Microsoft C++ exception: Magick::ErrorMissingDelegate at memory location 0x0012f7d4..
on line 45:
Image model( srcdir + "model.miff" );
3. Shapes example throws exception:
Microsoft C++ exception: Magick::ErrorMissingDelegate at memory location 0x0012f98c..
on line 45:
Image texture( srcdir + "tile.miff" );
Note that I use Visual Studio 2008 and I have to upgrade your project file from Visual C++ 6.0, but there were no conversion errors and the projects compiled cleanly.
I don't think this is a CRT issue, at least two example show the same "missing delegate" issue here.
Any idea?
Do you have VS 6.0 project to build entire ImageMagick, so I can try building it in debug mode?
Regards,
Miroslav
PS. What about the static library idea, is this feasible ?
1. Button example crashes on line 61:
button.read( backGround );
Error: Unhandled exception at 0x5a564c5a in button.exe: 0xC0000005: Access violation writing location 0x01d6cfa7.
2. Demo example throws exception:
Microsoft C++ exception: Magick::ErrorMissingDelegate at memory location 0x0012f7d4..
on line 45:
Image model( srcdir + "model.miff" );
3. Shapes example throws exception:
Microsoft C++ exception: Magick::ErrorMissingDelegate at memory location 0x0012f98c..
on line 45:
Image texture( srcdir + "tile.miff" );
Note that I use Visual Studio 2008 and I have to upgrade your project file from Visual C++ 6.0, but there were no conversion errors and the projects compiled cleanly.
I don't think this is a CRT issue, at least two example show the same "missing delegate" issue here.
Any idea?
Do you have VS 6.0 project to build entire ImageMagick, so I can try building it in debug mode?
Regards,
Miroslav
PS. What about the static library idea, is this feasible ?
Re: Windows installer issues
We need a starting point. Install http://www.imagemagick.org/download/bin ... 86-dll.exe. Now click on the Button workspace, build and execute. Does this work for you? It works for us under Windows 7 and 8.
Re: Windows installer issues
Previously I used "Q8" version of the same release, now uninstalled the old one and installed the one from your link.
Same crashes this time, only the crash addresses are different, for example button error is now:
Unhandled exception at 0x51814f6a in button.exe: 0xC0000005: Access violation writing location 0x008dcfb4.
Demo example still throws Magick::ErrorMissingDelegate exception.
Same crashes this time, only the crash addresses are different, for example button error is now:
Unhandled exception at 0x51814f6a in button.exe: 0xC0000005: Access violation writing location 0x008dcfb4.
Demo example still throws Magick::ErrorMissingDelegate exception.
Re: Windows installer issues
My test machine is Windows 7 32-bit, compiler Visual Studio 2008 with SP1.
Re: Windows installer issues
Do you install the Visual C++ 2010 Redistributable Package (even if you're using VS 2008)? See http://www.imagemagick.org/script/binar ... hp#windows near the bottom of the page.
Re: Windows installer issues
Yes, I also have VS 2010 installed here too.
Installing redist package you link brings this message: A newer version of Microsoft Visual C++ 2010 Redistributable has been detected on the machine.
Installing redist package you link brings this message: A newer version of Microsoft Visual C++ 2010 Redistributable has been detected on the machine.
Re: Windows installer issues
OK, I guess you are out of the ideas to check.
Can you share your Visual studio project files so I can debug the issue myself?
Can you share your Visual studio project files so I can debug the issue myself?