transcode 1.1.0 beta 0 fails to configure ImageMagick on OSX PPC

David Liontooth <[email protected]> Wed, 25 Jun 2008 14:30:42 -0700
Newsgroups gmane.comp.video.transcode.devel,gmane.comp.video.transcode.user
Message-ID <[email protected]>
Greetings --

On OSX Leopard PPC, ImageMagic fails to configure:

ERROR: option '--enable-imagemagick' failed: cannot link against libMagick
libMagick can be found in the following packages:
  Wand  http://www.imagemagick.org/

:/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_transcode/work/transcode-1.1.0beta0#   

./configure --prefix=/opt/local --disable-mmx --disable-altivec 
--with-libavcodec-prefix=/opt/local --with-libmpeg2-prefix=/opt/local
--with-libdvdread-prefix=/opt/local --with-libjpeg-prefix=/opt/local 
--with-lame-prefix=/opt/local --enable-a52 --enable-a52-default-decoder
--with-a52-prefix=/opt/local --enable-faac --with-faac-prefix=/opt/local 
--enable-freetype2 --with-freetype2-prefix=/opt/local --enable-imagemagick
--with-imagemagick-prefix=/opt/local --enable-libdv 
--with-libdv-prefix=/opt/local --enable-ogg --with-ogg-prefix=/opt/local 
--enable-sdl
--with-sdl-prefix=/opt/local --enable-theora 
--with-theora-prefix=/opt/local --enable-vorbis 
--with-vorbis-prefix=/opt/local --enable-libxml2
--with-libxml2-prefix=/opt/local --enable-x264 
--with-x264-prefix=/opt/local --enable-xvid --with-xvid-prefix=/opt/local

checking whether imagemagick support is requested... yes
checking for pkgconfig support for imagemagick... yes
checking how to determine IMAGEMAGICK_CFLAGS... pkg-config
checking magick/api.h usability... yes
checking magick/api.h presence... yes
checking for magick/api.h... yes
checking how to determine IMAGEMAGICK_LIBS... pkg-config
checking for InitializeMagick in -lMagick... no
checking whether imagemagick support is requested... yes
checking for pkgconfig support for imagemagick... no
checking how to determine IMAGEMAGICK_CFLAGS... prefix
checking for magick/api.h... (cached) yes
checking how to determine IMAGEMAGICK_LIBS... prefix
checking for InitializeMagick in -lMagickCore... yes
checking wand/magick-wand.h usability... no
checking wand/magick-wand.h presence... no
checking for wand/magick-wand.h... no

The file is confirmed present:

  /opt/local/include/ImageMagick/wand/magick-wand.h

Do you want the full configure log?

configure:41811: checking wand/magick-wand.h usability
configure:41828: /usr/bin/gcc-4.0 -c -O2 -no-cpp-precomp 
-D_INTL_REDIRECT_MACROS -I/opt/local/include conftest.c >&5
conftest.c:107:30: error: wand/magick-wand.h: No such file or directory

It's not clear the wand failure should matter -- in transcode 1.1.0 
alpha7, I get the same result:

checking whether imagemagick support is requested... yes
checking for pkgconfig support for imagemagick... yes
checking for Wand-config... /opt/local/bin/Wand-config
checking how to determine IMAGEMAGICK_CFLAGS... pkg-config
checking magick/api.h usability... yes
checking magick/api.h presence... yes
checking for magick/api.h... yes
checking how to determine IMAGEMAGICK_LIBS... pkg-config
checking for InitializeMagick in -lMagick... yes
checking wand/magick-wand.h usability... no
checking wand/magick-wand.h presence... no
checking for wand/magick-wand.h... no

-- that's after adding a symlink to the new library (this symlink was 
not present when I configured 1.1.0 beta 0):

cd /opt/local/lib
    ln -s libMagickCore.1.dylib libMagick.dylib

Yet in this case transcode is compiling fine.

David