problem with ImageMagick 6.8.6-6 (no delegates found)

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
agl2013
Posts: 5
Joined: 2013-08-26T11:47:27-07:00
Authentication code: 6789

problem with ImageMagick 6.8.6-6 (no delegates found)

Post by agl2013 »

I am having a weird problem with the latest ImageMagick (6.8.6-6) on OS X, that I installed via MacPorts. Namely, I can't convert any images because no delegates are found. Indeed, here's the output of identify --list format:

Code: Select all

tillina:~ artemio$ identify -list format
 Format  Module    Mode  Description
-------------------------------------------------------------------------------

* native blob support
r read support
w write support
+ support for multiple images

As you can see, absolutely no delegates are found! However, identify --version does report the usual assortment of delegates:

tillina:~ artemio$ identify --version
Version: ImageMagick 6.8.6-6 2013-08-17 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2013 ImageMagick Studio LLC
Features: DPC Modules
Delegates: bzlib fftw fontconfig freetype gslib jng jpeg lcms lzma png ps tiff x xml zlib

And so does convert -list configure:

tillina:~ artemio$ convert -list configure

Path: /opt/local/lib/ImageMagick-6.8.6//config-Q16/configure.xml

Name           Value
-------------------------------------------------------------------------------
CC             /usr/bin/clang
CFLAGS         -I/opt/local/include/freetype2 -I/opt/local/include -pipe -Os -arch x86_64 -Wall -D_FORTIFY_SOURCE=0 -D_THREAD_SAFE -pthread -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16
CODER_PATH     /opt/local/lib/ImageMagick-6.8.6/modules-Q16/coders
CONFIGURE      ./configure  '--prefix=/opt/local' '--enable-shared' '--enable-static' '--disable-ltdl-install' '--disable-silent-rules' '--with-frozenpaths' '--without-openexr' '--disable-hdri' '--with-dps' '--with-bzlib' '--with-fontconfig' '--with-gslib' '--with-jpeg' '--with-lcms' '--with-png' '--with-tiff' '--with-webp' '--with-zlib' '--with-modules' '--with-xml' '--without-perl' '--without-fpx' '--without-jbig' '--without-jp2' '--without-wmf' '--without-gvc' '--without-rsvg' '--without-lqr' '--without-pango' '--with-gs-font-dir=/opt/local/share/fonts/urw-fonts' '--with-x' 'CC=/usr/bin/clang' 'CFLAGS=-pipe -Os -arch x86_64' 'LDFLAGS=-L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64' 'CPPFLAGS=-I/opt/local/include' 'CXX=/usr/bin/clang++' 'CXXFLAGS=-pipe -Os -arch x86_64'
CONFIGURE_PATH /opt/local/etc/ImageMagick-6/
COPYRIGHT      Copyright (C) 1999-2013 ImageMagick Studio LLC
CPPFLAGS       -I/opt/local/include/ImageMagick-6
CXX            /usr/bin/clang++
CXXFLAGS       -pipe -Os -arch x86_64 -D_THREAD_SAFE -pthread
DEFS           -DHAVE_CONFIG_H
DELEGATES      bzlib fftw fontconfig freetype gslib jng jpeg lcms lzma png ps tiff x xml zlib
DISTCHECK_CONFIG_FLAGS 'CC=/usr/bin/clang' 'CFLAGS=-pipe -Os -arch x86_64' 'CPPFLAGS=-I/opt/local/include' 'CXX=/usr/bin/clang++' 'LDFLAGS=-L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64' --disable-deprecated --with-quantum-depth=16 --with-umem=no --with-autotrace=no --with-fpx=no --with-fontpath= --with-gs-font-dir=/opt/local/share/fonts/urw-fonts --with-gvc=no --with-jp2=no --with-lqr=no --with-openexr=no --with-pango=no --with-rsvg=no --with-wmf=no --with-perl=no
DOCUMENTATION_PATH /opt/local/share/doc/ImageMagick-6
EXEC-PREFIX    /opt/local
EXECUTABLE_PATH /opt/local/bin
FEATURES       DPC Modules
FILTER_PATH    /opt/local/lib/ImageMagick-6.8.6/modules-Q16/filters
HOST           x86_64-apple-darwin13.0.0
INCLUDE_PATH   /opt/local/include/ImageMagick-6
LDFLAGS        -L/opt/local/lib -L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64 -L/opt/local/lib
LIB_VERSION    0x686
LIB_VERSION_NUMBER 6,8,6,6
LIBRARY_PATH   /opt/local/lib/ImageMagick-6.8.6
LIBS           -lMagickCore -llcms2 -L/opt/local/lib -lfreetype -lfftw3 -L/opt/local/lib -lfontconfig -lXext -lSM -lICE -lX11 -lXt -L/opt/local/lib -llzma -lbz2 -lz -lltdl -lm -lpthread
NAME           ImageMagick
PCFLAGS        -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16
PREFIX         /opt/local
QuantumDepth   16
RELEASE_DATE   2013-08-17
SHARE_PATH     /opt/local/share/ImageMagick-6
SHAREARCH_PATH /opt/local/lib/ImageMagick-6.8.6/config-Q16
SVN_REVISION   12720
TARGET_CPU     x86_64
TARGET_OS      darwin13.0.0
TARGET_VENDOR  apple
VERSION        6.8.6
WEBSITE        http://www.imagemagick.org

Path: [built-in]

Name           Value
-------------------------------------------------------------------------------
FEATURES       
NAME           ImageMagick
QuantumDepth   16
I uninstalled, cleared and reinstalled ImageMagick from scratch, but it didn't change anything. Does anybody have any idea as to what could the problem be, or how to fix it?

Thanks a lot,

Artemio
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: problem with ImageMagick 6.8.6-6 (no delegates found)

Post by fmw42 »

Might you have multiple versions of IM installed? What do yo get from

port installed

where is IM installed? might you have it in two locations?

check

/opt/local/lib
and
/opt/lib


Do you get the same result using

convert -list format
agl2013
Posts: 5
Joined: 2013-08-26T11:47:27-07:00
Authentication code: 6789

Re: problem with ImageMagick 6.8.6-6 (no delegates found)

Post by agl2013 »

Thanks a lot for your answer. As you suspected, I did have an old version of IM installed in /usr/local. I completely erased this old version, uninstalled MacPort's ImageMagick, and reinstalled it, but the problem still persists, i.e., both convert -list format and identify -list format report that no delegates are found. Do you have any other suggestions?

Thanks again,

Artemio
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: problem with ImageMagick 6.8.6-6 (no delegates found)

Post by fmw42 »

Where is your version of IM located now?

What do you get from

convert -version

or from

path2IM/convert -version

once you know where IM resides.

try

type -a convert

and see where it thinks you have IM installed.


Check our path to see that it has been modified to know where IM resides

echo $PATH


Were there any error messages when you installed IM from MacPorts regarding installing the needed delegates (dependencies).


Note from Macports that you need to uninstall all the dependencies first. (You may have corrupt dependencies). See http://guide.macports.org/#using.port.uninstall

"If a port is a dependency of another installed port, uninstall will not remove it unless you remove the dependent port(s) first. To override this behavior, use the -f (force) switch. This will obviously break the dependents. Don't force uninstall ports unless you know what you are doing."


See what ports IM needs via

port deps imagemagick

are they all there?

port installed

will list them all

Did you selfupdate? see http://guide.macports.org/#using.port.selfupdate
agl2013
Posts: 5
Joined: 2013-08-26T11:47:27-07:00
Authentication code: 6789

Re: problem with ImageMagick 6.8.6-6 (no delegates found)

Post by agl2013 »

1. My version of IM was installed by MacPorts, so it is at /opt/local/bin. As I said in my previous message, I have made sure that no other versions are installed, i.e.:

Code: Select all

tillina:~ artemio$ type -a convert
convert is /opt/local/bin/convert
2. convert -version produces the following output:

Code: Select all

Version: ImageMagick 6.8.6-6 2013-08-30 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2013 ImageMagick Studio LLC
Features: DPC Modules
Delegates: bzlib fftw fontconfig freetype gslib jng jpeg lcms lzma png ps tiff x xml zlib
3. My path is also OK:

Code: Select all

tillina:~ artemio$ echo $PATH
/opt/local/bin:/opt/local/sbin:~/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/usr/local/texlive/current/bin/x86_64-darwin
4. As far as I know, IM didn't give any error messages when it was installed. For instance:

Code: Select all

:info:configure checking for JPEG... 
:info:configure checking jconfig.h usability... yes
:info:configure checking jconfig.h presence... yes
:info:configure checking for jconfig.h... yes
:info:configure checking jerror.h usability... yes
:info:configure checking jerror.h presence... yes
:info:configure checking for jerror.h... yes
:info:configure checking jmorecfg.h usability... yes
:info:configure checking jmorecfg.h presence... yes
:info:configure checking for jmorecfg.h... yes
:info:configure checking jpeglib.h usability... yes
:info:configure checking jpeglib.h presence... yes
:info:configure checking for jpeglib.h... yes
:info:configure checking for jpeg_read_header in -ljpeg... yes
:info:configure checking for JPEG library is version 6b or later... yes
:info:configure checking if JPEG package is complete... yes
5. Following your suggestions, I proceeded to uninstall all dependencies of IM and ImageMagick itself (this can be easily done in MacPorts) and then I reinstalled IM and its dependencies (this is done automatically by MacPorts when you require IM to be installed), but the problem still persisted.

6. I checked IM's dependencies (via port -deps ImageMagick) and verified that the packages reported were actually installed (via port installed).

7. Finally, I've executed port self update repeatedly, again to no avail.

To summarize my problem, convert -version shows that IM recognizes several delegates, and identify -list configure also shows that IM was built requiring those delegates. However, both convert -list format and identify -list format don't show any delegates, and in fact convert fails to process any file due to its inability to find any delegates. It is as if IM somehow looks for the delegates in the wrong place. Is there a way to find out where is IM looking for its delegates?

Thanks a lot,

Artemio
Post Reply