ImageMagick and Qt Creator on Windows
Posted: 2009-07-13T14:20:58-07:00
Hello,
I have created an application that uses ImageMagick on OS X without much issues. I compiled and installed ImageMagick from sources and linked into my application without much trouble.
Now I am trying to do the same on Windows, but the MinGW compiler is always complaining when I try to link the libraries.
Could the issue be that the libraries are mostly compiled using Visual Studio? Do I have to recompile them with MinGW? How do I do that?
Does anyone have any suggestions or examples? My "pro" file has following entries for example
On windows I placed the ImageMagick library under the main project folder and the paths are correct - linker finds the files, but cannot link.
I must be missing something simple - any help is appreciated.
Thanks.
I have created an application that uses ImageMagick on OS X without much issues. I compiled and installed ImageMagick from sources and linked into my application without much trouble.
Now I am trying to do the same on Windows, but the MinGW compiler is always complaining when I try to link the libraries.
Could the issue be that the libraries are mostly compiled using Visual Studio? Do I have to recompile them with MinGW? How do I do that?
Does anyone have any suggestions or examples? My "pro" file has following entries for example
Code: Select all
macx {
INCLUDEPATH += /Developer/ImageMagick-6.5.4-2/Magick++/lib \
/Developer/ImageMagick-6.5.4-2
LIBS += -lMagick++
}
win32 {
INCLUDEPATH += ./ImageMagick/lib \
./ImageMagick/include \
./ImageMagick
LIBS += ./ImageMagick/lib/CORE_RL_magick_.lib \
./ImageMagick/lib/CORE_RL_Magick++_.lib
}
I must be missing something simple - any help is appreciated.
Thanks.