sqlite - Yocto / Qt 5.6 - QSqlDatabase: QSQLITE driver not loaded -


i working on nitrogen6x board runs on yocto 2.1 qt 5.6.2 support. have developed qt application reads data sql database, started noticing below error when launch application on target.

qsqlite driver not loaded  qsqldatabase: available drivers: 

as understand it, means not have qsqlite driver (plugin) built , installed on target system. did simple search find sql plugin on target machine , got below dump:

~ # find / -name *sql* /usr/bin/sqlite3 /usr/lib/rpm/qf/wdj_l10n_sqlite /usr/lib/rpm/qf/yum_primary_sqlite /usr/lib/rpm/qf/yum_other_sqlite /usr/lib/rpm/qf/yum_filelists_sqlite /usr/lib/libsqlite3.so.0.8.6 /usr/lib/libsqlite3.so.0 /usr/lib/libsqlite3.so /usr/share/mime/application/x-sqlite3.xml /usr/share/mime/application/x-kexiproject-sqlite3.xml /usr/share/mime/application/x-sqlite2.xml /usr/share/mime/application/sql.xml /usr/share/mime/application/x-kexiproject-sqlite2.xml /opt/poky/2.1.1/sysroots/cortexa9hf-neon-poky-linux-gnueabi/usr/lib/libsqlite3.so /opt/poky/2.1.1/sysroots/cortexa9hf-neon-poky-linux-gnueabi/usr/lib/libsqlite3.so.0 /opt/poky/2.1.1/sysroots/cortexa9hf-neon-poky-linux-gnueabi/usr/lib/.debug/libsqlite3.so.0.8.6 /opt/poky/2.1.1/sysroots/cortexa9hf-neon-poky-linux-gnueabi/usr/lib/libsqlite3.la /opt/poky/2.1.1/sysroots/cortexa9hf-neon-poky-linux-gnueabi/usr/lib/qt5/mkspecs/modules/qt_lib_sql.pri /opt/poky/2.1.1/sysroots/cortexa9hf-neon-poky-linux-gnueabi/usr/lib/qt5/mkspecs/modules/qt_lib_sql_private.pri /opt/poky/2.1.1/sysroots/cortexa9hf-neon-poky-linux-gnueabi/usr/lib/libsqlite3.so.0.8.6 /opt/poky/2.1.1/sysroots/cortexa9hf-neon-poky-linux-gnueabi/usr/lib/pkgconfig/sqlite3.pc /opt/poky/2.1.1/sysroots/cortexa9hf-neon-poky-linux-gnueabi/usr/lib/python2.7/lib-dynload/.debug/_sqlite3.so 

i read through online posts , understand expect sqldrivers/libqsqlite.so present under

/opt/poky/2.1.1/sysroots/cortexa9hf-neon-poky-linux-gnueabi/usr/lib/qt5/plugins 

to resolve error ?

i wanted set yocto build create qsqlite driver plugin target file system. on appreciated. in advance.

i have added packageconfig_append_pn-qtbase = " sql-sqlite" in local.conf. later, did bitbake meta-toolchain-qt5 , build successful.

after extracting sdk did not find /sqldrivers/ under /usr/lib/qt5/plugins problem resolved , qt application able read sql database.


Comments

Popular posts from this blog

php - Permission denied. Laravel linux server -

google bigquery - Delta between query execution time and Java query call to finish -

python - Pandas two dataframes multiplication? -