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

Thomas Dähling t.daehling at googlemail.com
Tue May 5 10:17:44 CEST 2009


Also keep in mind that with dynamic linking also libpq.dll and it's
requirements must be locatable in the environment. Best is to check
the output of Dependencywalker where it complains about missing libs.

2009/5/5 Fabien Brachere <fabien at brachere.net>:
> 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
>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>

<div><br></div>




More information about the Qt-interest-old mailing list