MantisBT - CMake
View Issue Details
0013859CMakeModulespublic2013-01-20 03:372013-10-07 10:09
Evangelos Foutras 
Brad King 
normalmajoralways
closedfixed 
CMake 2.8.10.2 
CMake 2.8.11CMake 2.8.11 
0013859: FindImageMagick.cmake needs update for ImageMagick >= 6.8.0-8
From ImageMagick's 6.8.0-8 changelog:

  ABI is incompatible if quantum depth change. Add abi indication to library
  name, thanks to Bastien Roucaries (reference
  http://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=22352 [^]).

The library names now include a new suffix, either -Q8 or -Q16 (maybe others too?), depending on the quantum depth ImageMagick was compiled with.

For example on Arch Linux we have the following library name changes:

/usr/lib/libMagick++.so.6 => /usr/lib/libMagick++-Q16.so.7
/usr/lib/libMagickCore.so.6 => /usr/lib/libMagickCore-Q16.so.7
/usr/lib/libMagickWand.so.6 => /usr/lib/libMagickWand-Q16.so.7

Due to the above, the following CMake commands now fail to find the relevant libraries:

FIND_PACKAGE(ImageMagick COMPONENTS Magick++)
FIND_PACKAGE(ImageMagick COMPONENTS MagickWand)
FIND_PACKAGE(ImageMagick COMPONENTS MagickCore)
No tags attached.
related to 0014012closed Brad King FindImageMagick.cmake needs update for ImageMagick >= 6.8.0-8, perhaps use pkgconfig 
related to 0014174closed Brad King FindImageMagick.cmake does not find new imagemagick include dir 
patch v2.8.10.2+0001-FindImageMagick-Search-quantum-depth-suffixes-13859.patch (1,822) 2013-03-01 08:10
https://public.kitware.com/Bug/file/4662/v2.8.10.2%2B0001-FindImageMagick-Search-quantum-depth-suffixes-13859.patch
Issue History
2013-01-20 03:37Evangelos FoutrasNew Issue
2013-01-30 11:48Brad KingNote Added: 0032180
2013-03-01 06:32slava888Note Added: 0032419
2013-03-01 08:10Brad KingFile Added: v2.8.10.2+0001-FindImageMagick-Search-quantum-depth-suffixes-13859.patch
2013-03-01 08:11Brad KingNote Added: 0032420
2013-03-05 10:02Evangelos FoutrasNote Added: 0032508
2013-03-05 11:32Brad KingNote Added: 0032509
2013-03-05 11:32Brad KingAssigned To => Brad King
2013-03-05 11:32Brad KingStatusnew => resolved
2013-03-05 11:32Brad KingResolutionopen => fixed
2013-03-05 11:32Brad KingFixed in Version => CMake 2.8.11
2013-03-05 11:32Brad KingTarget Version => CMake 2.8.11
2013-03-14 13:23Brad KingRelationship addedrelated to 0014012
2013-05-28 09:43Brad KingRelationship addedrelated to 0014174
2013-10-07 10:09Robert MaynardNote Added: 0034068
2013-10-07 10:09Robert MaynardStatusresolved => closed

Notes
(0032180)
Brad King   
2013-01-30 11:48   
Most CMake find modules, including this one, are maintained by volunteer "module maintainers":

 http://www.cmake.org/Wiki/CMake:Module_Maintainers [^]

The maintainer for this module may not be able to address this for a while. Will anyone volunteer to take over the module maintainer role for ImageMagick, or a least supply a proposed patch?
(0032419)
slava888   
2013-03-01 06:32   
I' new to cmake, but I hacked the patch, which at least worked for me.
https://gist.github.com/slava888/5064067 [^]
(0032420)
Brad King   
2013-03-01 08:11   
Re 0013859:0032419: Thanks, I converted that to attachment "v2.8.10.2+0001-FindImageMagick-Search-quantum-depth-suffixes-13859.patch" and added -Q8 also.

Evangelos, does this patch resolve the issue?
(0032508)
Evangelos Foutras   
2013-03-05 10:02   
Patch works for me.

Thanks.
(0032509)
Brad King   
2013-03-05 11:32   
Thanks for testing. Applied:

 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=5fe98556 [^]
(0034068)
Robert Maynard   
2013-10-07 10:09   
Closing resolved issues that have not been updated in more than 4 months.