0

So I've been struggling with this for quite some time now. I can't get ImageMagick to compile for Mac so that I can package it in my application. The paths are always absolute and not relative.

Has anyone compiled it for use as a package in their own app?

Thanks.

Zohaib Zaidi
  • 288
  • 4
  • 11
  • It compiles but when I copy that compilation to another system it shows paths from the system it was compiled from – Zohaib Zaidi Oct 25 '16 at 12:05
  • Please show an example; also there's pre-compiled binaries on the ImageMagick site, why not use that instead? ftp://ftp.imagemagick.org/pub/ImageMagick/binaries/ImageMagick-x86_64-apple-darwin15.6.0.tar.gz – l'L'l Oct 25 '16 at 12:06
  • the precompiled binaries don't run standalone. I get this error when I try to run the convert command from the bin folder. dyld: Library not loaded: /usr/local/lib/libMagickCore-7.Q16HDRI.0.dylib Referenced from: /Users/Zohaib/Desktop/ImageMagick-7.0.3/bin/./convert Reason: image not found Trace/BPT trap: 5 – Zohaib Zaidi Oct 25 '16 at 12:17
  • Compiling from source should work though, as I just compiled it without installing and it ran fine. You still haven't provided the information on the "absolute" paths your refer too... – l'L'l Oct 25 '16 at 12:21
  • So jpg/png are working fine. When we want to add exr support the paths for the shared libraries are not fixed. It tries to fetch them from /Users/Zohaib/.. rather than a relative path after which I should be able to use it on any system. – Zohaib Zaidi Oct 25 '16 at 12:49
  • In that case build it statically... that way you aren't dependent upon those shared libs. – l'L'l Oct 25 '16 at 12:50
  • Tried that too.. Only getting issues with exr – Zohaib Zaidi Oct 25 '16 at 13:17
  • Did you download the `exr` delegate for it separately and also build it statically? I'm pretty sure you'll have to do this for anything that is not automatically included and has a value of `no` showing after compiling. – l'L'l Oct 25 '16 at 13:17
  • Yeah we downloaded the exr delegate separately. Png/Jpg works fine and the paths are relative. Really have no clue what's wrong with exr. – Zohaib Zaidi Oct 26 '16 at 12:39
  • @I'L'I I don't believe you can compile statically and distribute on OSX http://stackoverflow.com/a/5259427/2836621 – Mark Setchell Nov 04 '16 at 08:22

0 Answers0