Hello!
We already had a rdk board by phytec with a qt application using a sqlite database (I just had to add sqlite to IMAGE_INSTALL_append), but for some reasons we switched to toradex now. As I could see, sqlite3 is already included in the console-trdx-image, so it should work out of the box (certainly, i had to add the qt libs). So this is, what my IMAGE_INSTALL_append looks like now:
I also tried adding sqlite (→ the old version 2), but whenever I start our application, I always get the following error:
QSqlDatabase: QSQLITE driver not loaded
QSqlDatabase: available drivers:
QSqlDatabase: an instance of QCoreApplication is required for loading driver plugins
However, i can open the database file on the console with sqlite3 dbfile.db, so sqlite seems to be installed properly. I think Qt just cannot find the driver libary, but I don’t know how to fix this.
Systeminfo:
CoM: Toradex Colibri iMX6 Solo 256MB | V1.0A
SBC: Viola Plus | V1.2A Plus
Image: console-trdx-image
Version: 2.6 / v2015.12 / jethro / 2.0
You are missing the Qt5 backend for sqlite.
The Qt5 Yocto recipe allows a fine grained control over enabled feature with the PACKAGECONFIG mechanism. By default a lot of those features are not enabled.
You could try to add ‘sql-sqlite’ to PACKAGECONFIG from within conf/local.conf by adding:
Can you check and upload the following log files: /tmp-glibc/work/armv7at2hf-neon-angstrom-linux-gnueabi/qtbase/5.9.8+gitAUTOINC+82eb6aa08e-r0/temp/log.do_configure
/tmp-glibc/work/armv7at2hf-neon-angstrom-linux-gnueabi/qtbase/5.9.8+gitAUTOINC+82eb6aa08e-r0/temp/run.do_configure
Is the sqlite flag really set? Did you add sqlite or sqlite3 to your IMAGE_INSTALL? Please make sure it is sqlite3.
Hi stefan_e.tx Yes !!! It worked when I was following the article
“How to setup Qt Creator on Toradex” in the article you have given following syntax
+PACKAGECONFIG_append_pn-qtbase = " sql-sqlite" I just copy pasted that,And compiled the image but there were no sqlite driver library in it,But when I removed that + sign and again recompiled then the sqlite driver library is there,And my application is working good.I request you to please make the change in the article.
I have attached the screenshot of the article,Please go through to it.