QSqlDatabase: QSQLITE driver not loaded QSqlDatabase: available drivers:
-
Dear Developers,
I am trying to connect with my newly created SQLITE database on Beaglebone black . On running my QT application (cross compiled using QT 5.7.1) I get following error.
QSqlDatabase: QSQLITE driver not loaded
QSqlDatabase: available drivers:Can you please inform me how can I find out main reason for this problem and how can I solve this problem.
Additionally when I give run ldd libQt5Sql.so.5 I get following output
linux-vdso.so.1 (0xbec9d000) libQt5Core.so.5 => /usr/lib/arm-linux-gnueabihf/./libQt5Core.so.5 (0xb6) librt.so.1 => /lib/arm-linux-gnueabihf/librt.so.1 (0xb6b2f000) libdl.so.2 => /lib/arm-linux-gnueabihf/libdl.so.2 (0xb6b1c000) libpthread.so.0 => /lib/arm-linux-gnueabihf/libpthread.so.0 (0xb6af8000) libstdc++.so.6 => /usr/lib/arm-linux-gnueabihf/./libstdc++.so.6 (0xb69e) libm.so.6 => /lib/arm-linux-gnueabihf/libm.so.6 (0xb6974000) libgcc_s.so.1 => /lib/arm-linux-gnueabihf/libgcc_s.so.1 (0xb694b000) libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0xb685d000) libz.so.1 => /lib/arm-linux-gnueabihf/libz.so.1 (0xb683b000) libicui18n.so.57 => /usr/lib/arm-linux-gnueabihf/libicui18n.so.57 (0xb6) libicuuc.so.57 => /usr/lib/arm-linux-gnueabihf/libicuuc.so.57 (0xb65650) libpcre16.so.3 => /usr/lib/arm-linux-gnueabihf/libpcre16.so.3 (0xb650d0) libdouble-conversion.so.1 => /usr/lib/arm-linux-gnueabihf/libdouble-con) libglib-2.0.so.0 => /lib/arm-linux-gnueabihf/libglib-2.0.so.0 (0xb64140) /lib/ld-linux-armhf.so.3 (0xb6f08000) libicudata.so.57 => /usr/lib/arm-linux-gnueabihf/libicudata.so.57 (0xb4) libpcre.so.3 => /lib/arm-linux-gnueabihf/libpcre.so.3 (0xb4b28000)
Please inform me if you need any other information from me .
Kind regards
Saurabh -
@saurabh162
So your target does not seem to be seeing any available drivers.
Have you Googled:qt5 sqlite driver not loaded
? -
Hello JonB,
Thank you for your fast reply
Yes I am looking into it but did not get any answer till now which can fix this issue in my target.
-
Hi @saurabh162,
Since this is on the target, did you deploy the sqldrivers directory from the plugins directory onto the target too?
The link http://doc.qt.io/qt-5/linux-deployment.html#qt-plugins should offer some insight too here.
-
Thank you very much for your help
I am able to solve this problem after I copied "libqsqlite.so" from "/plugins/sqldrivers" directory of my PC to /plugins/sqldrivers directory of my target.
Thanks :)