[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 15:59:15 CET 2011
Hello!
I try to deploy win32 app with psql plugin using xcopy (copying).
App built with Microsoft Visual C++ 2005 Express SP1.
App uses Qt 4.6.3 and PostgreSQL client 8.3.13.
Qt and postgresql client were built from source.
I deploy these files:
a) all qt libraries from %qtdir%/bin/Qt*.dll go into %appdir%
b) libpq.dll go into %apppdir%
c) app itself into %appdir%
d) qt psql plugin go into %appdir%/plugins/sqldrivers
e) MSVC2005 runtime (Microsoft.VC80.CRT.manifest, msvcr80.dll,
msvcp80.dll, msvcm80.dll ) go into %appdir%
Now here's problem:
1) Without msvc runtime nothing loads and error appears "application
inproperty configured". Thats right.
2) With msvc runtime app loads, propery links agains qt but fails to
load psql plugin.
3) After installation of msvc redistributable package app loads and
plugin loads. All is fine.
Sadly 3) is not acceptable.
I need to deploy with copying. MSDN says that could be done, just put
msvc runtime with manifest into %appdir%.
Fact 3) means psql plugin needs some special treatment. I can't find
anything about it in qt docs. Please help!
--
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
More information about the Qt-interest-old
mailing list