I think the problem is that
ImageMagickObject.dll doesn't contain manifest.
Applications/libraries built from VC++ projects have manifest included by default.
ImageMagickObject.dll is built using
BuildImageMagickObject.cmd script not VC++ project and manifest isn't added to library.
It is necessary to use manifest (
mt.exe) tool explicitly. Here is quick & dirty path to
BuildImageMagickObject.cmd.
- Code: Select all
Index: BuildImageMagickObject.cmd
===================================================================
--- BuildImageMagickObject.cmd (revision 14072)
+++ BuildImageMagickObject.cmd (working copy)
@@ -64,14 +64,16 @@
(@echo Problem - the lib subdirectory of VisualMagick is missing important libraries)
goto :EOF
)
- cl /LDd /EHsc /I%PATH_TO_ROOT%\ /Zi /D_DEBUG /MTd ImageMagickObject.cpp %PATH_TO_MAGICK%\lib\CORE_DB_*.lib %PATH_TO_MAGICK%\lib\IM_MOD_DB_*.lib winmm.lib wsock32.lib advapi32.lib comsvcs.lib ImageMagickObject.res /link /IDLOUT:ImageMagickObject.idl
+ cl /LDd /EHsc /I%PATH_TO_ROOT%\ /Zi /D_DEBUG /MTd ImageMagickObject.cpp %PATH_TO_MAGICK%\lib\CORE_DB_*.lib %PATH_TO_MAGICK%\lib\IM_MOD_DB_*.lib winmm.lib wsock32.lib advapi32.lib comsvcs.lib ImageMagickObject.res /link /MANIFEST /IDLOUT:ImageMagickObject.idl
+ mt -manifest ImageMagickObject.dll.manifest -outputresource:ImageMagickObject.dll;2
)
if {%1}=={release} (
if not exist %PATH_TO_MAGICK%\lib\CORE_RL_magick_.lib (
(@echo Problem - the lib subdirectory of VisualMagick is missing important libraries)
goto :EOF
)
- cl /LD /EHsc /I%PATH_TO_ROOT%\ /Zi /MT ImageMagickObject.cpp %PATH_TO_MAGICK%\lib\CORE_RL_*.lib %PATH_TO_MAGICK%\lib\IM_MOD_RL_*.lib winmm.lib wsock32.lib advapi32.lib comsvcs.lib ImageMagickObject.res /link /IDLOUT:ImageMagickObject.idl
+ cl /LD /EHsc /I%PATH_TO_ROOT%\ /Zi /MT ImageMagickObject.cpp %PATH_TO_MAGICK%\lib\CORE_RL_*.lib %PATH_TO_MAGICK%\lib\IM_MOD_RL_*.lib winmm.lib wsock32.lib advapi32.lib comsvcs.lib ImageMagickObject.res /link /MANIFEST /IDLOUT:ImageMagickObject.idl
+ mt -manifest ImageMagickObject.dll.manifest -outputresource:ImageMagickObject.dll;2
)
if not exist ImageMagickObject.dll (
(@echo Problem - the ImageMagickObject DLL is missing. It did not build correctly)
See
http://msdn.microsoft.com/en-us/library/ms235591.aspx for more info.