Page 1 of 1

How to Compile ImageMagick for Multiple OSX Versions

Posted: 2012-06-14T08:51:46-07:00
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.

Re: How to Compile ImageMagick for Multiple OSX Versions

Posted: 2012-06-14T16:40:29-07:00
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)