PDA

View Full Version : QSqlDatabase: QSQLITE driver not loaded [Ubuntu Server 12.04]



mentalmushroom
19th October 2012, 10:10
Hello. I created the qt-based application on Ubuntu 12.04 x86 (qt 4.8.2) and it works fine there. Now I need to move it to Ubuntu Server 12.04 x64. I've installed libqt4-sql-sqlite, ia32-libs-multiarch, lib32icu48, so now the application can be launched, but when trying to access the sqlite database it gives the following errors:


QSqlDatabase: QSQLITE driver not loaded
QSqlDatabase: available drivers: QMYSQL3 QMYSQL


I suppose there is something related to 32/64 bit, but don't know how to fix it. Could somebody help me?

Robbie
20th October 2012, 10:04
You need to have your SQLite driver SO in the <appdir>/plugins/sqldrivers or <appdir>/sqldrivers directories

mentalmushroom
20th October 2012, 10:06
Thanks, I will try it, but on my development machine I don't have it there (however, I have qt framework installed, of course). But I thought it is possible to install libqt4-sql-sqlite instead.