Qt5,Windows,x64,VC2013,ImageMagick dll,debug mode - IM_MOD_RL_?\u0002?F?\u0001_.dll': No such file

Magick++ is an object-oriented C++ interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning Magick++.
Post Reply
User avatar
lexxai
Posts: 6
Joined: 2015-09-11T13:39:42-07:00
Authentication code: 1151
Location: Ukraine

Qt5,Windows,x64,VC2013,ImageMagick dll,debug mode - IM_MOD_RL_?\u0002?F?\u0001_.dll': No such file

Post by lexxai »

I try debug my project in Qt5.5 environment with VC2013 and IM 6.2.0 dlls.
And have some strange noised suffixes that added to `IM_MOD_RL` when searching dll files.
I try use and recompiled versions 6.2.0, 6.2.3, and compiled from source in Release and Debug configurations - result same.
When I use Release configuration of my project - all work ok.

How use in debug mode IM dlls ?

IM 6.2.0

Code: Select all

Exception at 0x7ff9a2051f08, code: 0xe06d7363: C++ exception, flags=0x1 (execution cannot be continued) (first chance) in CORE_RL_Magick___!Magick::throwException
"createIM Magick: unable to open module file `C:\\Users\\user\\.magick\\IM_MOD_RL_?\u0002?F?\u0001_.dll': No such file or directory @ warning/module.c/GetMagickModulePath/812"
User avatar
lexxai
Posts: 6
Joined: 2015-09-11T13:39:42-07:00
Authentication code: 1151
Location: Ukraine

Re: Qt5,Windows,x64,VC2013,ImageMagick dll,debug mode - IM_MOD_RL_?\u0002?F?\u0001_.dll': No such file

Post by lexxai »

found solution
need compile debug versions of dlls
IM_MOD_RL - Release version
IM_MOD_DB - Debug Version

libraries need use by this path: ImageMagick-src-windows\ImageMagick-6.9.3-0\VisualMagick\lib
dll from this path: ImageMagick-src-windows\ImageMagick-6.9.3-0\VisualMagick\bin

QT project file .pro:

Code: Select all

#ImageMagick Src 6.9.3-Q16

win32:CONFIG(release, debug|release): LIBS += -LD:\develop-tools\ImageMagick\ImageMagick-src-windows\ImageMagick-6.9.3-0\VisualMagick\lib -lCORE_RL_Magick++_ -lCORE_RL_magick_ -LCORE_RL_wand_
else:win32:CONFIG(debug, debug|release): LIBS += -LD:\develop-tools\ImageMagick\ImageMagick-src-windows\ImageMagick-6.9.3-0\VisualMagick\lib -lCORE_DB_Magick++_ -lCORE_DB_magick_ -LCORE_DB_wand_



p.s. for skip check path in windows registry
at ImageMagick-src-windows\ImageMagick-6.9.3-0\ImageMagick\magick\magick-config.h added

Code: Select all

#ifndef MAGICKCORE_INSTALLED_SUPPORT
#define MAGICKCORE_INSTALLED_SUPPORT 
#endif
Post Reply