Issue while installing ImageMagic binary on macOS Mojave

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?".
Locked
shahire
Posts: 14
Joined: 2019-12-04T17:51:30-07:00
Authentication code: 1152

Issue while installing ImageMagic binary on macOS Mojave

Post by shahire »

Hello IM team,
I have installed
ImageMagick-x86_64-apple-darwin19.2.0.tar.gz
from following page https://imagemagick.org/script/download.php.
Followed all steps mentioned on the page. However i have been facing below issue when i tried to compare the images

Code: Select all

 magick compare -highlight-color magenta -metric RMSE -fuzz 3% ref_field_baseline.png ref_field_checkpoint.png  -compose exclusion ref_field_diff.png;
  dyld: lazy symbol binding failed: Symbol not found: _aligned_alloc
  Referenced from: /Users/testuser/code/ImageMagick/mac_os/ImageMagick-iOS/lib//libMagickCore-7.Q16HDRI.7.dylib (which was built for Mac OS X 10.15)
  Expected in: /usr/lib/libSystem.B.dylib
Could you please help me how i can resolve the above issue?

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

Re: Issue while installing ImageMagic binary on macOS Mojave

Post by fmw42 »

Which version of IM? There is a bug (Mac Only) in the current version IM 6.9.10.79 and 7.0.9.9. Either downgrade or wait for the next release.

shahire
Posts: 14
Joined: 2019-12-04T17:51:30-07:00
Authentication code: 1152

Re: Issue while installing ImageMagic binary on macOS Mojave

Post by shahire »

Code: Select all

[b]$ magick --version[/b]
[i]Version: ImageMagick 7.0.9-10 Q16 x86_64 2019-12-17 https://imagemagick.org
Copyright: © 1999-2020 ImageMagick Studio LLC
License: https://imagemagick.org/script/license.php
Features: Cipher DPC HDRI 
Delegates (built-in): bzlib freetype jng jpeg lcms png raw tiff webp xml zlib[/i]

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

Re: Issue while installing ImageMagic binary on macOS Mojave

Post by fmw42 »

That version is not released yet by Imagemagick. Where/how did you get it? From the Git development repository? Perhaps you got it before the patch for the issue or at the time it had a bug?

shahire
Posts: 14
Joined: 2019-12-04T17:51:30-07:00
Authentication code: 1152

Re: Issue while installing ImageMagic binary on macOS Mojave

Post by shahire »

I have downloaded ImageMagick for MacOS has been downloaded from following site - https://imagemagick.org/script/download.php
section "Mac OS X Binary Release"
I did not downloaded from Git development repo.

It's part of your MacOs installation section on above mentioned page.

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

Re: Issue while installing ImageMagic binary on macOS Mojave

Post by fmw42 »

Try the latest version 7.0.9.11 and report if that fails. But note that it is only for High Sierra. If you are using some other version of Mac OSX, such as Mojave, then you probably should install from Homebrew.

singalen
Posts: 1
Joined: 2020-03-28T14:43:22-07:00
Authentication code: 1152

Re: Issue while installing ImageMagic binary on macOS Mojave

Post by singalen »

I came here to report the same problem.

A lot of users stay away from high Sierra because it drops the 32-bit application support. Distribution for 10.15-only is useless for a lot of people.

I prefer not to use Homebrew or MacPorts installation, because it will install a lot of X11 libraries, which I'm trying to avoid on my system. A downloadable package is easy to uninstall, unlike Homebrew/Macports dependencies.

Compilation targeting the lower versions of Mac SDK is easy: https://stackoverflow.com/questions/253 ... ersion-min

I was able to compile it on 10.14 for 10.6:

Code: Select all


$ CFLAGS=-mmacosx-version-min=10.6 LDFLAGS=-mmacosx-version-min=10.6 ./configure
...
$ make -j16 && sudo make install
...

$ otool -l $(which convert)
...
Load command 9
      cmd LC_VERSION_MIN_MACOSX
  cmdsize 16
  version 10.6
      sdk 10.14
...

Locked