[CMake] ImageMagick Not Found with CMake

Richard Kralik rwkrwk122 at gmail.com
Tue Jul 5 14:05:39 EDT 2016


I am trying to install  Theia-SfM (http://www.theia-sfm.org/index.html)
using cmake 3.6 on Ubuntu 16.04. When trying to configure the project the
output ends with

-- Check for ImageMagick
CMake Error at
/usr/local/share/cmake-3.6/Modules/FindPackageHandleStandardArgs.cmake:148
(message):
  Could NOT find ImageMagick (missing: ImageMagick_convert_EXECUTABLE
  ImageMagick_mogrify_EXECUTABLE ImageMagick_convert_EXECUTABLE
  ImageMagick_mogrify_EXECUTABLE)
Call Stack (most recent call first):

/usr/local/share/cmake-3.6/Modules/FindPackageHandleStandardArgs.cmake:388
(_FPHSA_FAILURE_MESSAGE)
  /usr/local/share/cmake-3.6/Modules/FindImageMagick.cmake:268
(FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  libraries/cimg/CMakeLists.txt:44 (find_package)


-- Configuring incomplete, errors occurred!

I am sure that ImageMagick and the commands convert and mogrify are
installed and working. They can both be found in the terminal;

name at name-all-series-invalid-entry-length-16-fixed-up-to-11:~$ type -a
convert
convert is /usr/local/bin/convert
name at name-all-series-invalid-entry-length-16-fixed-up-to-11:~$ type -a
mogrify
mogrify is /usr/local/bin/mogrify

Why can FindImageMagick not find convert and mogrify?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20160705/40cf8b96/attachment.html>


More information about the CMake mailing list