i'm currently struggling with the Qt SQLite plugin on android (coming
with Ministro II). the plugin lib certainly exists:
when i start my application, it prints "[...] QT_PLUGIN_PATH=/data/
data/org.kde.necessitas.ministro/files/qt/plugins [...]" (check with
adb logcat).
in that directory, libqsqlite.so exists, checked via adb shell:
"# ls /data/data/org.kde.necessitas.ministro/files/qt/plugins/
sqldrivers
ls /data/data/org.kde.necessitas.ministro/files/qt/plugins/sqldrivers
libqsqlite.so
#"
but upon application start, i also get the following message:
"W/Qt ( 724): QSqlDatabase: QSQLITE driver not loaded
W/Qt ( 724): QSqlDatabase: available drivers:
D/Qt ( 724): createPlatformWindow false"
so obviously, the plugin is there but it isn't recognized by the QtSql
module or by my application.
another thing i tried was to copy libqsqlite to my application's lib
directory and add that directory via QCoreApplication::addLibraryPath
but that didn't change anything.
also, copying libqsqlite.so to /data/local/qt/plugins/sqldrivers
didn't effect the outcome.
am i doing something wrong or have i forgotten any necessary steps?
i'd be thankful for any tips i get regarding this. until then, i'll
keep on googling ...
thanks a lot in advance!
sincerely
julian
i initially didn't realize that Qt looks for each plugin in its
appropriate subdir
(sqldrivers for example), even if it's not in the default plugin path but in
any of the specified library paths. silly me ... was kinda obvious actually.
anyways, i hope this helps.
btw. i didn't really get what you were saying about patching QtActivity.java
"to install the QtSqlite plugin" ... the qt-sqlite-plugin (libqsqlite.so
i think)
comes with Ministro (last time i tried it, at least) and should be found in
"/data/data/org.kde.necessitas.ministro/files/qt/plugins/sqldrivers".
you could check if its really there if the problem persists (using adb shell
or something).
kind regards
julian