Portable App with IM and mingw

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
mmickey

Portable App with IM and mingw

Post by mmickey »

Hi.
We have a QT4 project which uses ImageMagick (C++ and C). It compiles and works well with linux, and it compiles and works well with windows, but only on the computer on which it was built. When starting on another windows computer (with all dll's in the same folder) it doesn't work, it crashes everytime a functions tries to access an ImageMagick function.

ImageMagick dll's are built static and copied in the same path.
It is initialized with:

Code: Select all

Magick::InitializeMagick(QCoreApplication::applicationDirPath().toAscii().data());
and the include path in the project file is:

Code: Select all

/mingw/include/ImageMagick
How would you do that normally, what's wrong in my attemp?

greets mike
mmickey

Re: Portable App with IM and mingw

Post by mmickey »

No idea?

Asked the other way round, how should I include ImageMagick into a C/C++ project such that it should work correctly on windows machines?

Greets mike
Post Reply