[Qt-interest] Help needed, I am stuck building the QPSQL database plugin on Win XP/Qt 4.5.1/mingw

Fabien Brachere fabien at brachere.net
Tue May 5 08:49:14 CEST 2009


Le dimanche 03 mai 2009 à 17:23 +0200, Marc Balmer a écrit :
> Hi all
> 
> (I am new to this list, if this the wrong place for my question,  
> please redirect me)
> 
> I am trying to get the PostgreSQL database driver plugin up an running  
> on
> Windows XP using the stock Qt 4.5.1 LGPL distribution and the included
> mingw compiler.  I spent two weekends now and still no QPSQL driver in
> my applications...
> 
> I installed PostgreSQL and did the reimp/dlltool dance to get a  
> libpq.a library.
> I can buid the plugin in %QTDIR%/src/plugins/sqldrivers/psql as  
> described
> here
> 
> http://wiki.qtcentre.org/index.php?title=Building_the_QPSQL_plugin_on_Windows_using_MinGW
> 
> My plugin directory contains qsqlpsql4.dll and qsqlpsqld4.dll as  
> expected,
> but the plugin just does not load.
> 

Have you tried to put the dlls in the directory X:\your_app\sqldrivers
as described here ?
http://doc.trolltech.com/4.5/plugins-howto.html#the-higher-level-api-writing-qt-extensions





More information about the Qt-interest-old mailing list