How to tell magickcore.dll to use certain coder dlls

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
TheTaylor
Posts: 3
Joined: 2012-02-10T02:53:26-07:00
Authentication code: 8675308

How to tell magickcore.dll to use certain coder dlls

Post by TheTaylor »

Can anyone help me how to configure magickcore to use the coder dlls which are in the same directory?
I used MSYS on windows to compile imagemagick and use it in a QT programm.
I put all image magick dlls in the application directory. But when i check the programm with dependency walker it shows me, that the libmagickcore dll (which is in the same directory like the QT programm) calls the coder dlls from the directory where imagemagick placed them after compilation (c:\mingw\lib\imagemagick.....\modules-q-16\coder\...) how i can tell magickcore to use the coder dlls which are located in the same directory?
TheTaylor
Posts: 3
Joined: 2012-02-10T02:53:26-07:00
Authentication code: 8675308

Re: How to tell magickcore.dll to use certain coder dlls

Post by TheTaylor »

Solved it. If someone runs into the same problem i did:
::_putenv(QString("MAGICK_CODER_MODULE_PATH="+qApp->applicationDirPath()+"").toLatin1());
Post Reply