Including ImageMagick modules in my installer?

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
Robodave

Including ImageMagick modules in my installer?

Post by Robodave »

I'm developing an application which needs to read some weird image formats, and ImageMagick seems to solve my problems. However, I can't ask my users to install ImageMagick separately, so I need to include the libraries in my installer.

I'm using Windows XP SP3, Borland Delphi 2005, InstallShield 2008 Express, and PascalMagic. The program runs fine on my development machine (which has ImageMagick installed), but when installed on an end-user machine it can't find the ImageMagick libraries. InstallShield can include the DLL files (ie. CORE_RL_wand_.dll) and put them in the program directory, but they're not self-registering (regsvr32.exe doesn't work).

What do I need to do to register the ImageMagick shared libraries on a target machine, or otherwise ensure that my program can find them? Also, are there any other registry changes or configuration files that are absolutely necessary for proper operation?
Shannon

Re: Including ImageMagick modules in my installer?

Post by Shannon »

Hi,
I was wondering did you find a solution to your problem? I have almost the same issue. I have an application that uses ImageMagick (Visual C++ .Net application) and have problem running it on other computers other than mine. It run with no problem on my computer, but when I want to move it on another computer it just doesn't work!

I appreciate your help.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Including ImageMagick modules in my installer?

Post by magick »

Take a look at the portable Win32 static at 16 bits-per-pixel. Just copy to your host and run (no installer, no Windows registry entries). See http://www.imagemagick.org/download/bin ... indows.zip.
Shannon

Re: Including ImageMagick modules in my installer?

Post by Shannon »

Thanks Magick. I should have mentioned that I am using the ImageMagick version with dll so this won't work as my program still looks for Core_RL_Magick++.dll. Any other suggestions? I really appreciate your help.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Including ImageMagick modules in my installer?

Post by magick »

You can link your program against the portable static release of ImageMagick. Since we do not provide a dynamic portable release of ImageMagick your other option is to build a portable dynamic release of ImageMagick yourself (comment out the MAGICKCORE_INSTALLED_SUPPORT symbol in magick/magick-config.h).
Shannon

Re: Including ImageMagick modules in my installer?

Post by Shannon »

Hi Magick, thanks for your response.

First of all, isn't this MAGICKCORE_INSTALLED_SUPPORT commented out by default? I checked the code and it seems that way to me. I just wanted to double check with you.

I tried to create a dynamic portable version, but I seem to not be able to get it completely working. When I try to run my application in visual studio .net (c++),
the program compiles, but at run time I get this error:

The procedure entry point??0Geometry@Magick@@QAE@IIJJ_N0@Z could not be located in the dynamic link libaray CORE_RL_Magick++_.dll

any idea what causes the problem?

Thanks,
cyman

Re: Including ImageMagick modules in my installer?

Post by cyman »

I'm also working on this problem, but just started. Keep me up to date, I'm also using the COM object.
So far as I understand, we need to get the following file working and it needs to be registered with Windows:

ImageMagickObject.dll

See below:
http://imagemagick.linux-mirror.org/scr ... d8da1e7696
Post Reply