[Qt-interest] Deployed win32 app with msvc runtime as private assembly fails to load psql plugin
Dmitry Teslenko
dteslenko at gmail.com
Thu Jan 20 16:37:12 CET 2011
On Thu, Jan 20, 2011 at 18:09, <Oliver.Knoll at comit.ch> wrote:
> On 2011-01-20 Dmitry Dmitry Teslenko wrote:
>
>> d) qt psql plugin go into %appdir%/plugins/sqldrivers
>
> Unless you set the Qt plugins directory explicitly in your code or via qt.conf this location is wrong: the "Qt plugins home directory" is in your app directory, hence the proper location would be %appdir%/sqldrivers (in analogy %appdir%/imageformats etc.)
I set directory explicitly:
> QApplication::setLibraryPaths(QStringList(QString("./plugins")));
Sorry, I had to mention that.
If I wouldn't that could not be possible:
> 3) After installation of msvc redistributable package app loads and
> plugin loads. All is fine.
I've also found that:
> http://www.qtforum.org/article/26733/windows-7.html post #4
Guy says to distribute msvc runtime as side-by-side assembly one must
compile qt with -no-plugin-manifests switch. I've didn't set that
switch and maybe that's the case.
More information about the Qt-interest-old
mailing list