[Qt-interest] QSQL - Problem to load QSQLPSQL with qt 2009.02

Mhayk Whandson eu at mhayk.com.br
Sat Jun 20 16:48:22 CEST 2009


Hi all,

I am not managing to load the qsqlpsql driver in windows. I already
compiled qsqlpsql driver following the steps below:
$ cd C:\Qt\2009.02\qt\src\plugins\sqldrivers\psql
$ qmake -o Makefile "INCLUDEPATH+=C:\PostgreSQL\8.3\include"
"LIBS+=C:\PostgreSQL\8.3\lib\libpq.lib" psql.pro
$ make

However when I run my program I am unable to load the drivers, so I
tried to fix following the steps below:
$ cd C:\Qt\2009.02\qt
$ configure -release -qt-sql-psql -plugin-sql-psql -I
C:\PostgreSQL\8.3\include -L C:\PostgreSQL\8.3\lib
$ make

:( but the error continue:
-------------------------------------------------------------------
Starting C:/Users/mhayk/Desktop/dsm/src/debug/dsm.exe...
QSqlDatabase: QPSQL driver not loaded
QSqlDatabase: available drivers: QSQLITE QODBC3 QODBC
QSqlQuery::exec: database not open

C:/Users/mhayk/Desktop/dsm/src/debug/dsm.exe exited with code 0
-------------------------------------------------------------------

The qsqlpsql.dll is into C:\Qt\2009.02\qt\plugins\sqldrivers:
-------------------------------------------------------------------
C:\Qt\2009.02\qt\plugins\sqldrivers>dir
 O volume na unidade C não tem nome.
 O Número de Série do Volume é F265-7174

 Pasta de C:\Qt\2009.02\qt\plugins\sqldrivers

20/06/2009  02:57    <DIR>          .
20/06/2009  02:57    <DIR>          ..
20/06/2009  02:57             2.168 libqsqlite4.a
22/04/2009  04:58             2.178 libqsqlited4.a
22/04/2009  04:57             2.178 libqsqlodbc4.a
22/04/2009  04:57             2.182 libqsqlodbcd4.a
20/06/2009  02:57             2.178 libqsqlpsql4.a
20/06/2009  02:57           401.408 qsqlite4.dll
20/06/2009  00:01         2.793.327 qsqlited4.dll
22/04/2009  04:57           152.576 qsqlodbc4.dll
22/04/2009  04:57         1.593.196 qsqlodbcd4.dll
20/06/2009  02:57           103.424 qsqlpsql4.dll
              10 arquivo(s)      5.054.815 bytes
               2 pasta(s)    6.118.866.944 bytes disponíveis
-------------------------------------------------------------------

Could you help me ?

-- 
Mhayk Whandson
Linux User #413723
E-mail: eu at mhayk.com.br




More information about the Qt-interest-old mailing list