Hi, I would like to add some information to this topic, since I'm struggling with this issue also:
My script: convert.sh
Code: Select all
MAGICK_HOME=`dirname $0`
if [ "${MAGICK_HOME:0:1}" != "/" ]
then MAGICK_HOME=$(pwd)/$MAGICK_HOME
fi
export DYLD_LIBRARY_PATH="$MAGICK_HOME/lib"
export MAGICK_HOME=$MAGICK_HOME
MAGICK_PATH=$MAGICK_HOME/bin
$MAGICK_PATH/convert "$@"
Try to execute it:
Code: Select all
$ ./convert.sh -version
dyld: Library not loaded: /opt/X11/lib/libpng15.15.dylib
Referenced from: /Users/trzecieu/resource_pipeline/bin/osx/ImageMagick/./bin/convert
Reason: image not found
./convert.sh: line 13: 3285 Trace/BPT trap: 5 $MAGICK_PATH/convert "$@"
So that, I've pulled sources to libPNG 1.5.27 and I compiled them and I put them to 'lib' folder. This looks that fixes a problem with invocation because:
Code: Select all
$ ./convert.sh -version
Version: ImageMagick 7.0.1-4 Q16 x86_64 2016-05-15 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2016 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC HDRI
Delegates (built-in): bzlib freetype jng jpeg lcms png
Issue potentially could be marked as done but:
* Why convert refers to libpng15 even if it was compiled with libpng16?
Code: Select all
$ ./convert.sh -list configure
Path: [built-in]
Name Value
-------------------------------------------------------------------------------
FEATURES
NAME ImageMagick
QuantumDepth 16
Path: configure.xml
Name Value
-------------------------------------------------------------------------------
CC clang
CFLAGS -I/usr/local/include/libpng16 -I/usr/local/include -I/usr/local/include/freetype2 -g -O2 -Wall -mtune=westmere -fexceptions -D_FORTIFY_SOURCE=0 -D_THREAD_SAFE -pthread -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16
CODER_PATH /ImageMagick-7.0.1/lib/ImageMagick-7.0.1/modules-Q16HDRI/coders
CONFIGURE ./configure '--disable-dependency-tracking' '--disable-installed' '--enable-delegate-build' '--enable-shared' '--disable-static' '--without-x' '--without-frozenpaths' '--prefix=/ImageMagick-7.0.1' 'CC=clang' 'CXX=clang++' 'PKG_CONFIG_PATH=/usr/local/lib/pkgconfig'
CONFIGURE_PATH /ImageMagick-7.0.1/etc/ImageMagick-7/
COPYRIGHT Copyright (C) 1999-2016 ImageMagick Studio LLC
CPPFLAGS -I/ImageMagick-7.0.1/include/ImageMagick-7
CXX clang++
CXXFLAGS -g -O2 -D_THREAD_SAFE -pthread
DEFS -DHAVE_CONFIG_H
DELEGATES bzlib mpeg freetype jng jpeg lcms png
DISTCHECK_CONFIG_FLAGS 'CC=clang' 'CXX=clang++' --disable-deprecated --disable-installed --with-quantum-depth=16 --with-jemalloc=no --with-umem=no --with-autotrace=no --with-gslib=no --with-fontpath= --with-rsvg=no --with-perl=no
DOCUMENTATION_PATH /ImageMagick-7.0.1/share/doc/ImageMagick-7
EXEC-PREFIX /ImageMagick-7.0.1
EXECUTABLE_PATH /ImageMagick-7.0.1/bin
FEATURES DPC HDRI Cipher
FILTER_PATH /ImageMagick-7.0.1/lib/ImageMagick-7.0.1/modules-Q16HDRI/filters
GIT_REVISION 10879
HOST x86_64-apple-darwin15.4.0
INCLUDE_PATH /ImageMagick-7.0.1/include/ImageMagick-7
LDFLAGS -L/ImageMagick-7.0.1/lib -L/Users/cristy/ImageMagick-7.0.1-4/magick/.libs -L/Users/cristy/ImageMagick-7.0.1-4/magick -L/Users/cristy/ImageMagick-7.0.1-4/wand/.libs -L/Users/cristy/ImageMagick-7.0.1-4/wand
LIB_VERSION 0x701
LIB_VERSION_NUMBER 7,0,1,4
LIBRARY_PATH /ImageMagick-7.0.1/lib/ImageMagick-7.0.1
LIBS -L/usr/local/lib -llcms2 -L/usr/local/lib -lfreetype -ljpeg -L/usr/local/lib -lpng16 -lbz2 -lm
NAME ImageMagick
PCFLAGS -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16
PREFIX /ImageMagick-7.0.1
QuantumDepth 16
RELEASE_DATE 2016-05-15
SHARE_PATH /ImageMagick-7.0.1/share/ImageMagick-7
SHAREARCH_PATH /ImageMagick-7.0.1/lib/ImageMagick-7.0.1/config-Q16HDRI
TARGET_CPU x86_64
TARGET_OS darwin15.4.0
TARGET_VENDOR apple
VERSION 7.0.1
WEBSITE http://www.imagemagick.org
* This version tends to throw much more exceptions
than previous one used.
BTW:
* Do you have an archived version of bins of image magick for macOS? Binary distribution that is available on
http://www.imagemagick.org/download/binaries/ has only binaries for the latest ImageMagick 7.0.1, and I can't find old one for 6.5.9-10 (It's probably due a missing version in binary name ImageMagick-x86_64-apple-darwin15.4.0.tar.gz, so that each new version overrides old version)
I would really appreciate any help solving issue with 7.0.1 or helping me getting binaries for macOS of ImageMagick 6.5.9-10
Cheers,
Piotr
----
Update: I found that
http://www.imagemagick.org/download/binaries/ !=
http://www.imagemagick.org/download/releases/ and in releases portal it's an old version's sources and the most recent one. I'll try to them in meantime.