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

Bill KING bill.king at trolltech.com
Tue May 5 00:13:42 CEST 2009


Marc Balmer wrote:
> 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
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>   
Are the postgres dll's visible in your path? That's usually the last
piece in the puzzle.

If they are, then try running your app with QT_DEBUG_PLUGINS set to 1.
This may give some insight as to why it's not loading.

Hope this helps.

-- 
Bill King, Software Engineer
Qt Software, Nokia Pty Ltd
Brisbane Office




More information about the Qt-interest-old mailing list