Qt-interest Archive, August 2006
[OT?] Can't build PyQt SQL module on Ubuntu Dapper
Message 1 in thread
This may be off topic, but since 1) I didn't get a response on the PyQt list,
and 2) this may be a Qt build/environment problem, I'm posting here.
I am trying to build PyQt 4.0.1 on Ubuntu Dapper drake.
I am trying to build PyQt4 4.0.1 on an Kubuntu Dapper machine. I have all the
Qt packages installed, as well as the Qt-devel packages.
dpkg -l|grep libqt gives me:
libqt4-core
libqt4-debug
libqt4-debug-dev
libqt4-dev
libqt4-gui
libqt4-qt3support
libqt4-sql
It was telling me the SQL module was not going to be built. After Phil
Thompson pointed me to the -w switch in the configure script, I get this:
Checking to see if the QtSql module should be built...
g++ -DQT_NO_DEBUG -DQT_SQL_LIB -I. -I/usr/mkspecs/linux-g++ -I/usr/include/qt4 -I/usr/include/qt4/QtSql -I/usr/include/qt4/QtGui -I/usr/X11R6/include -pipe -O2 -w -D_REENTRANT
cfgtest_QtSql.cpp -o
cfgtest_QtSql -L/usr/lib -L/usr/X11R6/lib -Wl,-rpath,/usr/lib -lQtSql -L/build/buildd/qt4-x11-4.1.2/lib -lpq -lmysqlclient -lsqlite -lQtCore -L/build/buildd/qt4-x11-4.1.2/lib -lfontconfig -lz -lm -lpthread -ldl -lQtGui -L/build/buildd/qt4-x11-4.1.2/lib -L/usr/X11R6/lib -laudio -lXt -lpng -lSM -lICE -lQtCore -L/build/buildd/qt4-x11-4.1.2/lib -lz -lpthread -lXi -lXrender -lXrandr -lXcursor -lXinerama -lfreetype -lfontconfig -lXext -lX11 -lm -ldl -lXext -lX11 -lm -lpthread
/usr/bin/ld: cannot find -lpq <------- Error here
collect2: ld returned 1 exit status
I have libpq4 installed, and the libQt4Sql.so is linked against that. I don't
know where the request to use libpq is coming from.
In the end, we'll probably be using an ORM framework instead of Qt's native
SQL modules, but I'd still like it to build completely.
Can someone enlighten me?
j
--
[ signature omitted ]