From pykde Wed Aug 30 21:32:31 2006 From: "Joshua J. Kugler" Date: Wed, 30 Aug 2006 21:32:31 +0000 To: pykde Subject: [PyKDE] Can't build PyQt SQL module on Ubuntu Dapper Message-Id: <200608301332.32299.joshua () eeinternet ! com> X-MARC-Message: https://marc.info/?l=pykde&m=115697433305266 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 lists: 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 -- Joshua Kugler Lead System Admin -- Senior Programmer http://www.eeinternet.com PGP Key: http://pgp.mit.edu/ ID 0xDB26D7CE PO Box 80086 -- Fairbanks, AK 99708 -- Ph: 907-456-5581 Fax: 907-456-3111 _______________________________________________ PyKDE mailing list PyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde