Image Magick with Lazarus not working after update.
Posted: 2018-05-26T07:22:38-07:00
Hi, I've updated Lazarus and ImageMagic after 3 years, and initially I got the runtime error:
"... CORE_RL_magick_.dll is missing from your computer."
That dll is now called CORE_RL_MagickCore_.dll.
I changed the following references in ImageMagic.pas:
CORE_RL_magick_.dll to C:\Program Files\ImageMagick-7.0.7-Q16\CORE_RL_MagickCore_.dll
CORE_RL_wand_.dll to C:\Program Files\ImageMagick-7.0.7-Q16\CORE_RL_MagickWand_.dll
This made no difference and eventually I found I had to put all 25 ImageMagick dlls in the same folder as my final exe file.
Now the program executes but there are colours missing in the images, and it hits an access violation when I load a new image.
Having to put those dlls in the exe file folder is obviously not right. In the previous installation I didn't need to pull in any dlls or make any changes.
Thanks for any help,
Steve.
"... CORE_RL_magick_.dll is missing from your computer."
That dll is now called CORE_RL_MagickCore_.dll.
I changed the following references in ImageMagic.pas:
CORE_RL_magick_.dll to C:\Program Files\ImageMagick-7.0.7-Q16\CORE_RL_MagickCore_.dll
CORE_RL_wand_.dll to C:\Program Files\ImageMagick-7.0.7-Q16\CORE_RL_MagickWand_.dll
This made no difference and eventually I found I had to put all 25 ImageMagick dlls in the same folder as my final exe file.
Now the program executes but there are colours missing in the images, and it hits an access violation when I load a new image.
Having to put those dlls in the exe file folder is obviously not right. In the previous installation I didn't need to pull in any dlls or make any changes.
Thanks for any help,
Steve.