Public bug reported: when trying to use qtsql in (x)ubuntu precise (12.04), it fails to do anything since no sql drivers are loaded and prints the following error on the console:
> QSqlDatabase: QMYSQL driver not loaded > QSqlDatabase: available drivers: i've checked qt's library paths (QCoreApplication::libraryPaths()) and it turns out, the path to qt's dynamically loaded sql drivers is not on the paths list: "/usr/lib/kde4/plugins" "/some/path/to/the/executables/working/directory" when i add /usr/lib/x86_64-linux-gnu/qt4/plugins as additional library path, then QSqlDatabase::drivers() correctly finds the sql plugin drivers and returns "QSQLITE" "QMYSQL" "QMYSQL3" ProblemType: Bug DistroRelease: Ubuntu 12.04 Package: libqt4-sql-sqlite 4:4.8.1-0ubuntu4.1 ProcVersionSignature: Ubuntu 3.2.0-24.39-generic 3.2.16 Uname: Linux 3.2.0-24-generic x86_64 NonfreeKernelModules: nvidia ApportVersion: 2.0.1-0ubuntu8 Architecture: amd64 Date: Wed Jun 13 10:05:22 2012 InstallationMedia: Xubuntu 12.04 LTS "Precise Pangolin" - Release amd64 (20120425) ProcEnviron: LANGUAGE=en_US:en TERM=xterm PATH=(custom, user) LANG=en_US.UTF-8 SHELL=/bin/bash SourcePackage: qt4-x11 UpgradeStatus: No upgrade log present (probably fresh install) ** Affects: qt4-x11 (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug precise -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1012550 Title: qtsql: no drivers loaded (incomplete library paths?) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qt4-x11/+bug/1012550/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs