Page 1 of 1

Error loading QSQLITE

PostPosted: Thu Jun 07, 2012 1:16 pm
by jduran
I've compiled QxOrm for ARM processors running on linux. When the application is executed, the following error is shown:

QSqlDatabase: QSQLITE driver not loaded
QSqlDatabase: available drivers:
[QxOrm] qx::QxSqlDatabase : unable to open connection to database
Driver not loaded Driver not loaded
[QxOrm] 'qx::dao' internal error <create table>
[QxOrm] error retrieving valid sql connection to database
Error configuring the application: [QxOrm] 'qx::dao' internal error <create table> [QxOrm] error retrieving valid sql connection to database
./start.sh: line 4: 778 Segmentation fault ./gem_heart_two -qws


Does the error "QSQLITE driver not loaded" mean that the libsqlite library has not been found? if not, what does it means?

Joaquim Duran

Re: Error loading QSQLITE

PostPosted: Thu Jun 07, 2012 3:22 pm
by QxOrm admin
Hi,

Does the error "QSQLITE driver not loaded" mean that the libsqlite library has not been found ?

Yes, exactly !
Your application doesn't find your SQLite driver, or doesn't arrive to load it.

Re: Error loading QSQLITE

PostPosted: Fri Jun 08, 2012 8:12 am
by QxOrm admin
Just to be more accurate than my previous answer :
Your application doesn't find your Qt plugin SQLite driver : it's located to ./plugins/sqldrivers/ directory of your Qt package.
And you have to deploy this Qt SQLite plugin with your application.
More details about Qt SQL drivers here : http://doc.qt.nokia.com/4.7-snapshot/sql-driver.html

Re: Error loading QSQLITE

PostPosted: Sat Jun 09, 2012 8:50 am
by jduran
You were right, the problem was that the Sqlite driver for Qt was not intalled.

Thank you for your help.

Joaquim Duran