[Qt-interest] plugin can't be loaded under Windows
Ender EREL
erelender at yahoo.com
Fri Jul 10 12:48:31 CEST 2009
Dong Tiger wrote:
> 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
What does QPluginLoader.errorString() method return?
If the plugins are built in debug mode and your application is built in
release mode, the configuration difference may be causing this.
--
Ender EREL
More information about the Qt-interest-old
mailing list