delegate libraries integration possible?
Posted: 2009-07-15T20:58:13-07:00
Hi there,
Long story short: I compiled ImageMagick using MinGW to obtain Windows dlls (libMagickCore-2.dll and libMagickWand-2.dll) suitable for linking against when compiling my application with MinGW (which rejects dlls made with MSVC). Everything works great on my machine. When I copied the executables onto an another computer along with my precious dlls, I got an error with the program being unable to locate delegate libraries for any format. Upon looking at the library binaries, I found hardcoded references to "c:\mingw\lib\ImageMagick-6.5.1\...". Apparently, if this directory doesn't contain the libraries, the program will fail, they will not be found if located in the application directory, and no regard is paid to the MAGICK_HOME env variable. I will have a hard time requiring all my users to put the required libs in this location. Which brings me to the question: is it posible to get a single 'integrated' dll of IM, with some delegates statically included within? If not, then maybe I can get them without the hardcoded reference to c:\mingw, or point it somewhere else? Or are there any other possibilities?
Thanks.
Long story short: I compiled ImageMagick using MinGW to obtain Windows dlls (libMagickCore-2.dll and libMagickWand-2.dll) suitable for linking against when compiling my application with MinGW (which rejects dlls made with MSVC). Everything works great on my machine. When I copied the executables onto an another computer along with my precious dlls, I got an error with the program being unable to locate delegate libraries for any format. Upon looking at the library binaries, I found hardcoded references to "c:\mingw\lib\ImageMagick-6.5.1\...". Apparently, if this directory doesn't contain the libraries, the program will fail, they will not be found if located in the application directory, and no regard is paid to the MAGICK_HOME env variable. I will have a hard time requiring all my users to put the required libs in this location. Which brings me to the question: is it posible to get a single 'integrated' dll of IM, with some delegates statically included within? If not, then maybe I can get them without the hardcoded reference to c:\mingw, or point it somewhere else? Or are there any other possibilities?
Thanks.