[Qt-interest] Installing Qt with PostgreSQL support on MacOS X

Mike Jackson imikejackson at gmail.com
Wed Dec 10 17:49:24 CET 2008


On 2008-12-10 05:49:48 -0500, "Florent Morin" <morinflorent at gmail.com> said:

> 
> Hello,
> 
> I use Qt 4.4.3 on Mac OS X 10.5.
> 
> I have installed the PostgreSQL 8.2 package from Fink.
> 
> Configuration works fine with :
> ./configure -universal -debug-and-release -dwarf2 -assistant-webkit
> 
> But when I run compilation, it failed with this message :
> ----------------------
> ld warning: in /sw/lib/libpgport.a, file is not of required architecture
> ld warning: in /sw/lib/libpq.dylib, file is not of required architecture
> Undefined symbols:
>   "_PQclear", referenced from:
>       qDeallocatePreparedStmt(QPSQLResultPrivate*)      in qsql_psql.o
> [...]
> ----------------------
> 
> Thanks for your responses.

It looks like the installation of PostgreSQL from Fink is NOT a 
universal binary. You have two choices. Make PostgreSQL compile as 
universal binary OR remove the -universal from your Qt configure script.

Mike Jackson




More information about the Qt-interest-old mailing list