[SOLVED] Debian7, assistant missing sql driver
-
Hi.
I am deplyoing my application to Debian 7.8 (64bit), but assistant refuses to launch:
@QSqlDatabase: QSQLITE driver not loaded
QSqlDatabase: available drivers:
Error reading collection file '/opt/myapp/myapp.qhc': Cannot load sqlite database driver!.@Here is folder structure:
@/opt/myapp/plugins/sqldrivers/libqsqlite.so
/opt/myapp/myapp
/opt/myapp/assistant
/opt/myapp/myapp.qhc
/opt/myapp/myapp.qch
/opt/myapp/qt.conf
/opt/myapp/...@and content of qt.conf:
@[Paths]
Plugins=./plugins/sqldrivers@This is how I am launching assistant:
@./assistant -collectionFile myapp.qhc@I am using Qt 4.8.1 - built by myself. Driver file libqsqlite.so is taken from built Qt.
Note: I am using this approach, when deploying myapp to CentOS (5) and it works there.
Please help!
-
I turned out that this approach is not needed at all, proper sql drivers can be easily installed via apt-get or it can be added to control file in deb package.
@apt-get install libqt4-sql-sqlite@
Marking as solved.