[PyQt] Problems with MySQL module
Gustavo A. Díaz
gustavo.diaz at gmail.com
Sun Sep 2 23:54:57 BST 2007
Ok, first:
gustavo at riven:~$ ls -l /usr/lib/libmysqlclient*
-rw-r--r-- 1 root root 2606868 2007-04-03 08:09 /usr/lib/libmysqlclient.a
-rw-r--r-- 1 root root 941 2007-04-03 08:08 /usr/lib/libmysqlclient.la
-rw-r--r-- 1 root root 2617742 2007-04-03 08:09 /usr/lib/libmysqlclient_r.a
-rw-r--r-- 1 root root 995 2007-04-03 08:08 /usr/lib/libmysqlclient_r.la
lrwxrwxrwx 1 root root 22 2007-09-02 11:15 /usr/lib/libmysqlclient_r.so
-> libmysqlclient_r.so.15
lrwxrwxrwx 1 root root 26 2007-06-15 19:43
/usr/lib/libmysqlclient_r.so.15 -> libmysqlclient_r.so.15.0.0
-rw-r--r-- 1 root root 1973044 2007-04-03 08:09
/usr/lib/libmysqlclient_r.so.15.0.0
lrwxrwxrwx 1 root root 20 2007-09-02 11:15 /usr/lib/libmysqlclient.so
-> libmysqlclient.so.15
lrwxrwxrwx 1 root root 24 2007-06-15 19:43
/usr/lib/libmysqlclient.so.15 -> libmysqlclient.so.15.0.0
-rw-r--r-- 1 root root 1964756 2007-04-03 08:09
/usr/lib/libmysqlclient.so.15.0.0
Second (i believe this is what you asked...):
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/QtSql -I/usr/include/qt4/QtGui -I/usr/include/qt4
-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/usr/lib -L/usr/lib -lpq -L/usr/lib/mysql -lmysqlclient_r -lsqlite
-lsqlite3 -lQtCore -L/usr/lib -lfontconfig -lz -lm -pthread -lgthread-2.0-lrt -
lglib-2.0 -lpthread -ldl -lQtGui -L/usr/lib -L/usr/X11R6/lib -laudio -lXt
-lpng -lSM -lICE -lQtCore -L/usr/lib -lz -pthread -lgthread-2.0 -lrt -
lglib-2.0 -lpthread -lXi -lXrender -lXrandr -lXfixes -lXcursor -lXinerama
-lfreetype -lfontconfig -lXext -lX11 -lm -ldl -lXext -lX11 -lm -lpthread
/usr/bin/ld: cannot find -lsqlite3
collect2: ld devolvió el estado de salida 1
Fro some reason now that changed, it shows -lsqlite3, but i would not use
sqlite module...
i just need mysql module. Still, does not enable mysql module for
compile...
Cheers.
2007/9/2, Andreas Pakulat <apaku at gmx.de>:
>
> On 02.09.07 15:11:19, Gustavo A. Díaz wrote:
> > Of course i do....
> >
> > gustavo at riven:~$ locate libmysqlclient_r.so
> > /usr/lib/libmysqlclient_r.so
> > /usr/lib/libmysqlclient_r.so.15
> > /usr/lib/libmysqlclient_r.so.15.0.0
> >
> > I've tested this with 3 workstations i have with same system guys......
>
> Ok, I know this sounds as if we don't trust you, but would you please
> check with ls -l /usr/lib/libmysqlclient* what really exists?
>
> > So, for me is a problem with the configure script or something... cause
> is
> > the only module that that happen this...
>
> I don't think so, the problem is that the linker can't link against that
> library - for whatever reasons. To link to a library that is in /usr/lib
> usually you don't need anything but the -lmysqlclient_r option which
> configure obviously uses for you already.
>
> It would also help if you could post the compiler line (if its shown in
> the verbose output) that is used for the test application.
>
> Andreas
>
> --
> Are you ever going to do the dishes? Or will you change your major to
> biology?
> _______________________________________________
> PyQt mailing list PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>
--
Gustavo A. Díaz
GDNet Projects
www.gdnet.com.ar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20070902/e207d071/attachment.html
More information about the PyQt
mailing list