[cmake-developers] [CMake 0016058]: ImageMagick found from Command line but not from CMake GUI

Mantis Bug Tracker mantis at public.kitware.com
Mon Apr 11 15:24:15 EDT 2016


The following issue has been SUBMITTED. 
====================================================================== 
https://cmake.org/Bug/view.php?id=16058 
====================================================================== 
Reported By:                Alex Ferrier
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   16058
Category:                   CMake
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2016-04-11 15:24 EDT
Last Modified:              2016-04-11 15:24 EDT
====================================================================== 
Summary:                    ImageMagick found from Command line but not from
CMake GUI
Description: 
I am trying to configure the project Theia-SfM to compile with XCode on a Mac.

https://github.com/sweeneychris/TheiaSfM

Using CMake 3.5.1 installed via Macports via XCode the package configures and
builds fine once the appropriate dependencies are installed, e.g.

mkdir Build
cmake -G XCode ..

-- Generating done
-- Build files have been written to: /Users/alex/src/TheiaSfM/build
If using CMake GUI 3.5.1 downloaded from KitWare, and installed via
applications, the same build fails to find ImageMagick. Output ends:

-- Found SuiteSparse 4.2.1
-- Check for ImageMagick
ImageMagick_EXECUTABLE_DIRImageMagick_EXECUTABLE_DIR-NOTFOUND
CMake Error at
/Applications/CMake.app/Contents/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:148
(message):
  Could NOT find ImageMagick (missing: ImageMagick_convert_EXECUTABLE
  ImageMagick_mogrify_EXECUTABLE ImageMagick_convert_EXECUTABLE
  ImageMagick_mogrify_EXECUTABLE)
ImageMagick is demonstrably installed (via macports) in /opt/local/bin.

Alexs-MacBook-Pro:TheiaSfM alex$ type -a mogrify
mogrify is /opt/local/bin/mogrify
Is there any obvious reason why identical versions of CMake would fail to find
the same package? I'm assuming /opt/local is in my CMake GUI paths search paths,
because further up it finds other dependencies there.

-- Found Google Flags: /opt/local/include in namespace: google
-- Check for Google Log
-- Found Google Logging: /opt/local/include
-- Check for Ceres

Steps to Reproduce: 
See description, download package and configure with command line (successful)
and GUI (unsuccessful.) Presumably reproducible with other builds using
imagemagick? 
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2016-04-11 15:24 Alex Ferrier   New Issue                                    
======================================================================



More information about the cmake-developers mailing list