FS#35280 - [cmake] does not detect ImageMagick any more
Attached to Project:
Arch Linux
Opened by Rudolf Polzer (rpolzer) - Tuesday, 14 May 2013, 18:19 GMT
Last edited by Andrea Scarpino (BaSh) - Monday, 03 June 2013, 11:19 GMT
Opened by Rudolf Polzer (rpolzer) - Tuesday, 14 May 2013, 18:19 GMT
Last edited by Andrea Scarpino (BaSh) - Monday, 03 June 2013, 11:19 GMT
|
Details
Description:
See this upstream bug: ttp://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=5fe98556 Long story short: ImageMagick renamed some library names, cmake no longer detects ImageMagick. Additional info: * cmake 2.8.10.2-5 * Gentoo patched the issue like this: http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/dev-util/cmake/files/cmake-2.8.10.2-FindImageMagick.patch?revision=1.1 Steps to reproduce: in any cmake-using project, run "cmake .". Observe: converseen-0.6.2$ cmake . -- Could NOT find ImageMagick (missing: ImageMagick_Magick++_LIBRARY) (found version "6.8.4-10") |
This task depends upon
Closed by Andrea Scarpino (BaSh)
Monday, 03 June 2013, 11:19 GMT
Reason for closing: Fixed
Additional comments about closing: cmake 2.8.11-2
Monday, 03 June 2013, 11:19 GMT
Reason for closing: Fixed
Additional comments about closing: cmake 2.8.11-2
http://public.kitware.com/Bug/view.php?id=14012
cmake ../${pkgname}-${pkgver} \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DImageMagick_Magick++_INCLUDE_DIR:PATH=/usr/include/ImageMagick-6 \
-DImageMagick_Magick++_LIBRARY:FILEPATH=/usr/lib/libMagick++-6.Q16.so \
-DImageMagick_MagickWand_INCLUDE_DIR:PATH=/usr/include/ImageMagick-6 \
-DImageMagick_MagickWand_LIBRARY:FILEPATH=/usr/lib/libMagickWand-6.Q16.so \
-DImageMagick_MagickCore_INCLUDE_DIR:PATH=/usr/include/ImageMagick-6 \
-DImageMagick_MagickCore_LIBRARY:FILEPATH=/usr/lib/libMagickCore-6.Q16.so
-DCMAKE_CXX_FLAGS:STRING="-DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16"
to shut off multiple screenfuls of deprecation warnings, as these preprocessor macros are now required. Of course, even cmake in git does not add these flags yet...
This makes kipi-plugins compilation fail, because it looks for /usr/include/magick/api.h instead of /usr/include/ImageMagick-6/magick/api.h
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=3de9bb48