[Qt-interest] QMYSQL problem on ubuntu

Diego Schulz dschulz at gmail.com
Thu Jun 4 20:12:14 CEST 2009


On Thu, Jun 4, 2009 at 1:04 PM, Riccardo Roasio
<riccardo.roasio at gmail.com> wrote:
> The only strange (for me) thing that i found was that in the
>
> /usr/lib/qt4/plugins/ directory i have no sqldrivers directory...
> only those:
>
> accessible  codecs  iconengines  imageformats  inputmethods
>
>
> If can help..
>

Really weird. Which Ubuntu version are you running? I suspect you have
something messed up in your system.
Have you compiled and installed Qt and/or MySQL from sources?  Which
Qt versions?

I'm on Jaunty (9.04), all working ok,  and I have

$ find /usr/lib/qt4/plugins/sqldrivers/ -type f
/usr/lib/qt4/plugins/sqldrivers/libqsqlite.so
/usr/lib/qt4/plugins/sqldrivers/libqsqlmysql.so
/usr/lib/qt4/plugins/sqldrivers/libqsqlpsql.so

MySQL plugin info:

$ sudo aptitude show libqt4-sql-mysql
Package: libqt4-sql-mysql
New: yes
State: installed
Automatically installed: yes
Version: 4.5.0-0ubuntu4.1
Priority: optional
Section: libs
Maintainer: Kubuntu Developers <kubuntu-devel at lists.ubuntu.com>
Uncompressed Size: 135k
Depends: libc6 (>= 2.1.3), libgcc1 (>= 1:4.1.1), libmysqlclient15off
(>= 5.0.27-1), libqt4-sql
         (= 4.5.0-0ubuntu4.1), libqtcore4 (= 4.5.0-0ubuntu4.1),
libstdc++6 (>= 4.1.1)
PreDepends: dpkg (>= 1.14.12ubuntu3)
Suggests: libqt4-dev
Description: Qt 4 MySQL database driver
 This package contains the MySQL plugin for Qt 4.

 Install it if you intend to use or write Qt programs that are to
access a MySQL DB.
Homepage: http://www.trolltech.com


diego




More information about the Qt-interest-old mailing list