[Qt-interest] plugin can't be loaded under Windows

Dong Tiger idlecat511 at gmail.com
Fri Jul 10 12:10:45 CEST 2009


Hi,

I ran into a strange problem. I am using Qt(qt-sdk-win-opensource-2009.01.1)
and MinGW(gcc 4.4.0). CMake is used as the build system. And I used Qt
Plugin mechanism in my program.

If I compile the code with debug enabled ( cmake -DCMAKE_BUILD_TYPE=debug),
plugins will be loaded successfully. But if not, QPluginLoader::instance
just returns NULL.

I tried to compare the cmd line of debug mode and non debug mode. The only
difference seems to be that in debug mode there is " -DQT_DEBUG" in g++
arguments and non-debug mode doesn't have that.

Any idea of that? TIA.

--
Tiger
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090710/c00daad1/attachment.html 


More information about the Qt-interest-old mailing list