[Qt-interest] Trouble compiling Qt 4.4.3 with PostgreSQL support
Robert Hairgrove
evorgriahr at hispeed.ch
Tue Dec 30 15:28:53 CET 2008
Thiago Macieira wrote:
> So, you have two options: either you modify the configure script, or you
> install those extra libraries that we're requesting.
Thank you, Thiago. I decided to modify the configure script after
reading the task description on the Trolltech website. Here are the
corresponding lines:
=== excerpt from configure ====
if [ "$CFG_SQL_psql" != "no" ]; then
if "$WHICH" pg_config >/dev/null 2>&1; then
QT_CFLAGS_PSQL=`pg_config --includedir 2>/dev/null`
QT_LFLAGS_PSQL=`pg_config --libdir 2>/dev/null`
### QT_LIBS_PSQL=`pg_config --libs 2>/dev/null`###
QT_LIBS_PSQL=`-lpg`
fi
=== end excerpt from configure ===
The offending line is marked by "###", and the fix is right below that.
Of course, it is just now starting to run "make", so I can't guarantee
that it works perfectly ... but configure seemed to like it!
Bob
More information about the Qt-interest-old
mailing list