[Qt-interest] Deployed win32 app with msvc runtime as private assembly fails to load psql plugin

Bo Thorsen bo at fioniasoftware.dk
Thu Jan 20 16:50:22 CET 2011


Den 20-01-2011 16:37, Dmitry Teslenko skrev:
> 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.

It's by far the easiest to distribute with the manifest compiled into 
the executable.

Bo Thorsen,
Fionia Software.

-- 

Expert Qt and C++ developer for hire
Contact me if you need expert Qt help
http://www.fioniasoftware.dk




More information about the Qt-interest-old mailing list