[Qt-interest] Trouble compiling Qt 4.4.3 with PostgreSQL support

Thiago Macieira thiago.macieira at trolltech.com
Tue Dec 30 13:36:55 CET 2008


Robert Hairgrove wrote:
>(Qt 4.4.3, Ubuntu 7.04, PostgreSQL server and dev package ver. 8.2)
>
>Qt builds fine unless I try to enable PostgreSQL support with the
>"-qt-sql-psql" switch. Configure fails when checking for PostgreSQL
>support:
>
>    /usr/bin/ld: cannot find -lpam
>    collect2: ld returned 1 exit status
>
>The -L switch used for testing is:
>    -L/usr/lib -lpgport -lpam -lssl -lcrypto -lkrb5 -lcom_err -lz
>-lreadline -lcrypt -ldl -lm -lpq
>
>All the PostgreSQL include files are located properly at:
>    -I/usr/include/postgresql
>
>Do I need a higher version of PostgreSQL?

Hi Robert,

No, you don't need a  higher version.

We've got a task on the subject, but I don't know if it has been fixed 
(for a later version of Qt) or if it is still open.

The fact is that the "pg_config --libs" command we used simply doesn't 
output what we expected it to, even though it is clear in the 
documentation that it's the set of libraries that PostgreSQL was compiled 
with. We expected it to output the set of libraries required to link 
against PostgreSQL (like pkg-config does).

So, you have two options: either you modify the configure script, or you 
install those extra libraries that we're requesting.
-- 
Thiago Macieira - thiago.macieira (AT) nokia.com
  Senior Software Engineer - Nokia, Qt Software
  Qt Software is hiring - ask me
      Sandakerveien 116, NO-0402 Oslo, Norway
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20081230/606b2cdf/attachment.bin 


More information about the Qt-interest-old mailing list