Discussion:
Qt-Creator and Qwt under Win, MinGW
Martin Mensch
2013-01-15 10:50:56 UTC
Permalink
Hi,

I tried to install Qwt under Win7 compiled with MinGW which works so far that I can compile and run the examples.
Now I wanted to install Qwt to Qt Creator so I can use the integrated designer to setup my forms. But this fails. When using the integrated designer I get a message under Tools | Form Editor | About Qt Designer Plugins... -> Failed plugins:
The plugin 'C:/Qt/Qwt/6.0.2/designer/plugins/designer/qwt_designer_plugin.dll' uses incompatible Qt library. Expected build key "Windows msvc release full-config", got "Windows mingw release full-config"
Googling for that I found some comments that say it is because Qt Creator is compiled with Visual Studio and cannot work together with dlls compiled with MinGW.
So I just want to ask the Qt Creator experts:
- Is that the reason for this message?
- Is there a ready to use Qt Creator compiled with MinGW?
- Are there other ways to get me working with Qwt and Qt Creator?
- What about stand alone Qt Designer? Does it have the same issue?

Thank you for any help

Martin
Joseph Crowell
2013-01-15 10:57:47 UTC
Permalink
Post by Martin Mensch
Hi,
I tried to install Qwt under Win7 compiled with MinGW which works so far that I can compile and run the examples.
The plugin 'C:/Qt/Qwt/6.0.2/designer/plugins/designer/qwt_designer_plugin.dll' uses incompatible Qt library. Expected build key "Windows msvc release full-config", got "Windows mingw release full-config"
Googling for that I found some comments that say it is because Qt Creator is compiled with Visual Studio and cannot work together with dlls compiled with MinGW.
- Is that the reason for this message?
Yes. Your Qwt needs to be compiled for msvc too.
Post by Martin Mensch
- Is there a ready to use Qt Creator compiled with MinGW?
Not for Qt 5.0.
Post by Martin Mensch
- Are there other ways to get me working with Qwt and Qt Creator?
Get a Qwt compiled with msvc 2010 or compile it yourself.
Post by Martin Mensch
- What about stand alone Qt Designer? Does it have the same issue?
Yes.
Post by Martin Mensch
Thank you for any help
Martin
_______________________________________________
Qt-creator mailing list
http://lists.qt-project.org/mailman/listinfo/qt-creator
Konstantin Tokarev
2013-01-15 10:59:15 UTC
Permalink
Post by Martin Mensch
Hi,
I tried to install Qwt under Win7 compiled with MinGW which works so far that I can compile and run the examples.
The plugin 'C:/Qt/Qwt/6.0.2/designer/plugins/designer/qwt_designer_plugin.dll' uses incompatible Qt library. Expected build key "Windows msvc release full-config", got "Windows mingw release full-config"
Googling for that I found some comments that say it is because Qt Creator is compiled with Visual Studio and cannot work together with dlls compiled with MinGW.
- Is that the reason for this message?
Yes. Executables and plugins built by MinGW and MSVC are binary incompatible. They cannot be used together.
Post by Martin Mensch
- Is there a ready to use Qt Creator compiled with MinGW?
- Are there other ways to get me working with Qwt and Qt Creator?
Rebuild designer plugin(s) with Visual Studio [Express], or ask Qwt to provide them.
Post by Martin Mensch
- What about stand alone Qt Designer? Does it have the same issue?
You can get pre-compiled Qt built with MinGW. It's Designer should be compatible with your plugin(s).
--
Regards,
Konstantin
Janne Koskinen
2013-01-15 11:15:15 UTC
Permalink
Post by Konstantin Tokarev
Yes. Executables and plugins built by MinGW and MSVC are binary
incompatible. They cannot be used together.
Just to add I made a bug report about the issue some time ago but I guess
since it is against QtSDK it never got enough attention
https://bugreports.qt-project.org/browse/QTSDK-1320 .
My issue specifically was that I made QML extension plugin which worked
fine when running it using qmlviewer but the items where not show properly
in designer and there was no error coming from QtCreator/QMLDesigner.
This is now sort of fixed with SDK now built with the same compiler in Qt
5, feel free to close.

-Janne

Loading...