ImageMagick with Magick++ on the Mac
Posted: 2008-04-22T04:50:50-07:00
Hi
I have programmed a application which is using ImageMagick's C++ API. On Windows, the ImageMagick DLL's have to be in the search path in order to find the libraries. There is also a parameter to MagickLib::InitializeMagick(szPath);
which is getting the library directory.
On the Mac, I have installed the ImageMagick libraries to /op/local/lib (I installed the binary distribution of them, without using MacPorts). On the Mac where I compiled my application, it can find the libraries and works fine.
But when I want to try the compiled app on a different Mac, it won't start because it cannot find the ImageMagick DYLD's. I have put them on the very same place /opt/local/lib, have set the environment variables in .profile, and so on.
But it doesn't work.
Now the question: Where do I have to put the DYLD's or where do I have to change settings in order to let it work.
The strange thing is, that on the development mac (where I compiled it), I removed the entries in .profile. The command line tools of ImageMagick don't work anymore, but my app can pick up the libraries somehow.
I am not a big Mac guru, so can it be, that the library location is bind during compiletime to the app?
On the Mac, the MagickLib::InitializeMagick(szPath); function doesn't require the correct path set, also I have tried to do so without success.
Any help, hints or tips are welcome.
Thanks in advance.
Michael
I have programmed a application which is using ImageMagick's C++ API. On Windows, the ImageMagick DLL's have to be in the search path in order to find the libraries. There is also a parameter to MagickLib::InitializeMagick(szPath);
which is getting the library directory.
On the Mac, I have installed the ImageMagick libraries to /op/local/lib (I installed the binary distribution of them, without using MacPorts). On the Mac where I compiled my application, it can find the libraries and works fine.
But when I want to try the compiled app on a different Mac, it won't start because it cannot find the ImageMagick DYLD's. I have put them on the very same place /opt/local/lib, have set the environment variables in .profile, and so on.
But it doesn't work.
Now the question: Where do I have to put the DYLD's or where do I have to change settings in order to let it work.
The strange thing is, that on the development mac (where I compiled it), I removed the entries in .profile. The command line tools of ImageMagick don't work anymore, but my app can pick up the libraries somehow.
I am not a big Mac guru, so can it be, that the library location is bind during compiletime to the app?
On the Mac, the MagickLib::InitializeMagick(szPath); function doesn't require the correct path set, also I have tried to do so without success.
Any help, hints or tips are welcome.
Thanks in advance.
Michael