View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0013859CMakeModulespublic2013-01-20 03:372013-10-07 10:09
ReporterEvangelos Foutras 
Assigned ToBrad King 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product VersionCMake 2.8.10.2 
Target VersionCMake 2.8.11Fixed in VersionCMake 2.8.11 
Summary0013859: FindImageMagick.cmake needs update for ImageMagick >= 6.8.0-8
DescriptionFrom 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)
TagsNo tags attached.
Attached Filespatch file icon v2.8.10.2+0001-FindImageMagick-Search-quantum-depth-suffixes-13859.patch [^] (1,822 bytes) 2013-03-01 08:10 [Show Content]

 Relationships
related to 0014012closedBrad King FindImageMagick.cmake needs update for ImageMagick >= 6.8.0-8, perhaps use pkgconfig 
related to 0014174closedBrad King FindImageMagick.cmake does not find new imagemagick include dir 

  Notes
(0032180)
Brad King (manager)
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 (reporter)
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 (manager)
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 (reporter)
2013-03-05 10:02

Patch works for me.

Thanks.
(0032509)
Brad King (manager)
2013-03-05 11:32

Thanks for testing. Applied:

 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=5fe98556 [^]
(0034068)
Robert Maynard (manager)
2013-10-07 10:09

Closing resolved issues that have not been updated in more than 4 months.

 Issue History
Date Modified Username Field Change
2013-01-20 03:37 Evangelos Foutras New Issue
2013-01-30 11:48 Brad King Note Added: 0032180
2013-03-01 06:32 slava888 Note Added: 0032419
2013-03-01 08:10 Brad King File Added: v2.8.10.2+0001-FindImageMagick-Search-quantum-depth-suffixes-13859.patch
2013-03-01 08:11 Brad King Note Added: 0032420
2013-03-05 10:02 Evangelos Foutras Note Added: 0032508
2013-03-05 11:32 Brad King Note Added: 0032509
2013-03-05 11:32 Brad King Assigned To => Brad King
2013-03-05 11:32 Brad King Status new => resolved
2013-03-05 11:32 Brad King Resolution open => fixed
2013-03-05 11:32 Brad King Fixed in Version => CMake 2.8.11
2013-03-05 11:32 Brad King Target Version => CMake 2.8.11
2013-03-14 13:23 Brad King Relationship added related to 0014012
2013-05-28 09:43 Brad King Relationship added related to 0014174
2013-10-07 10:09 Robert Maynard Note Added: 0034068
2013-10-07 10:09 Robert Maynard Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team