1

I started using Qt Creator recently and it seems to work well. A sample application I build on OS X uses the ImageMagick library.

No problems there - everything works as expected. I built the ImageMagick libraries from source.

Now I move over to the Windows side and the linking troubles start. Qt Creator on Windows uses MinGW and not the Microsoft's compiler, but the ImageMagick library was compiled with VC.

In short - I cannot link the prebuilt libraries on Windows against my Qt Creator project using gcc

This means I have to recompile the ImageMagick libraries using MinGw, but I have never used GCC on Windows before. How do I run ./configure ?

ImageMagick comes with "windows sources", but they are all tailored for VisualStudio.

Can anyone help? Anyone already linked ImageMagick library into their Qt Creator program on Windows?

Thanks,

Dj.

4

1 回答 1

0

您需要链接的不仅仅是 libMagick++.a。libMagickCore.a 对于初学者,可能还有 libMagickWand.a,以及几个依赖项(这些依赖于您编译 IM 的方式),例如 -lz -ltiff -ljpeg -lpng12 -lgdi32 -lpthread -lfreetype。

马修

于 2009-08-13T05:13:41.880 回答