I'd like to be able to compare, at run-time, the version of
ImageMagick actually being used with the version that RMagick was
compiled for. I've had a few people manage to misuse their distro's
packaging system to install a version of RMagick that was compiled
for a version of ImageMagick different from the one they're actually
using. This can happen when you install ImageMagick from Debian
"stable" but get RMagick from "unstable", for example. RMagick will
initialize okay but most methods fail, as you'd expect. So I thought
I'd add an explicit test so I can put out a suitable warning message.
The simplest thing I can think of is to #include magick/version.h and
then compare MagickLibVersion against the version number returned by
GetMagickVersion. However I'm not 100% sure version.h and the symbols
it defines is considered part of the public API so I thought I'd
check first.
_______________________________________________
Magick-developers mailing list
Magick-developers@imagemagick.org
http://studio.imagemagick.org/mailman/listinfo/magick-developers