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

Marc Balmer marc at msys.ch
Sun May 3 17:23:25 CEST 2009


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.

The SQL browser demo program does not show QPSQL as a driver and
neither do my programs work that specify QPSQL as the database driver.

I am kind of lost now, after spending hours and hours googling for this
and pestering people on the #qt channel on irc.

If you have successfull built and used the psql plugin on Windows using
mingw, I would really appreciate some help.

Thanks,
Marc Balmer




More information about the Qt-interest-old mailing list