[Qt-interest] Connecting to PostgreSQL Database

Trey Haslem treyhaslem at yahoo.com
Wed Dec 2 21:52:57 CET 2009


Looks like I have to use the plugin for this project.  The problem I'm having is that after running qmake in step 2 of the import library build section (http://wiki.qtcentre.org/index.php?title=Building_the_QPSQL_plugin_on_Windows_using_MinGW) I get the following errors.
 
debug/qsql_psql.o: In function `Z10qMakeErrorRK7QStringN9QSqlError9ErrorTypeEPK1
8QPSQLDriverPrivate':
C:/Qt/2009.04/qt/src/plugins/sqldrivers/psql/../../../sql/drivers/psql/qsql_psql
.cpp:177: undefined reference to `PQerrorMessage'
debug/qsql_psql.o: In function `ZN18QPSQLResultPrivate14processResultsEv':
C:/Qt/2009.04/qt/src/plugins/sqldrivers/psql/../../../sql/drivers/psql/qsql_psql
.cpp:187: undefined reference to `PQresultStatus'
.......
.......
C:/Qt/2009.04/qt/src/plugins/sqldrivers/psql/../../../sql/drivers/psql/qsql_psql
.cpp:1291: undefined reference to `PQnotifies'
debug/qsql_psql.o: In function `ZN5QListI7QStringE13node_destructEPNS1_4NodeE':
C:/Qt/2009.04/qt/src/plugins/sqldrivers/psql/../../../../include/QtCore/../../sr
c/corelib/tools/qlist.h:(.text$_Z10qPQfreememPv[qPQfreemem(void*)]+0xd): undefin
ed reference to `PQfreemem'
collect2: ld returned 1 exit status
mingw32-make[1]: *** [debug\qsqlpsqld4.dll] Error 1
mingw32-make[1]: Leaving directory `C:/Qt/2009.04/qt/src/plugins/sqldrivers/psql
'
mingw32-make: *** [debug] Error 2
 
What is going on???
--- On Wed, 12/2/09, Mikhail Veygman <mveygman at gmail.com> wrote:


From: Mikhail Veygman <mveygman at gmail.com>
Subject: Re: [Qt-interest] Connecting to PostgreSQL Database
To: "Lawrence Haslem" <treyhaslem at yahoo.com>
Cc: qt-interest at trolltech.com
Date: Wednesday, December 2, 2009, 11:00 AM


If you don't have the QT plugins or don't have the driver built-in the
only option left is the PostgreSQL's native client libraries.
-  
Regards,

Mikhail Veygman


-----Original Message-----
From: Lawrence Haslem <treyhaslem at yahoo.com>
To: qt-interest at trolltech.com
Subject: [Qt-interest] Connecting to PostgreSQL Database
Date: Wed, 2 Dec 2009 07:18:45 -0800 (PST)

Can anyone tell me how to connect to a postreSQL database without using
configure or the plugins?  I tried several days to use both to no avail.
Is there a third option?

Lawrence

_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest




      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091202/6aaf4461/attachment.html 


More information about the Qt-interest-old mailing list