How to Compile ImageMagick for Multiple OSX Versions

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
CosminU
Posts: 1
Joined: 2012-06-14T06:56:46-07:00
Authentication code: 13

How to Compile ImageMagick for Multiple OSX Versions

Post by CosminU »

Hi All,

I need to create a single bundle that works on both OSX 10.6 and 10.7 which includes ImageMagick and Qt linked dynamically.

I can compile ImageMagick on both 10.6 and 10.7 but the binaries compiled on 10.6 will not work on 10.7 and vice-versa.Why is that?

Can't I create universal binaries for the x86 architecture?

Thank you.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: How to Compile ImageMagick for Multiple OSX Versions

Post by anthony »

More than likely it is a change in the libraries.

Check the libraries it is using. if it uses ".so" then the two IM'x will probably work fine on both,
BUt if it is compilaed against a specific so version number, then it probably won't.

How you restrict a compilation to specific version number or not, or if you should, I am not certain.

You could always package both, but only install the right one! I have seen many package installers do this (not with IM though)
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply