Hello!
Is there a way to use QMYSQL driver on Android to use in addDatabase()? Have to use some data from Mysql database, and it would be great if that would work. It seems however that only QSQLITE is available by default.
Hello!
Is there a way to use QMYSQL driver on Android to use in addDatabase()? Have to use some data from Mysql database, and it would be great if that would work. It seems however that only QSQLITE is available by default.
Well, if the driver is not built you have to enable building it.
https://wiki.qt.io/Build_Qt_5_MySQL_Plugin_for_Android
Cheers,
_
When following this guide I run into problem when linking libmariadb.so. I get "undefined reference to 'libiconv_*' message when running 'make install'. I checked and $SR/usr/lib/libiconv.a does exist. In "CMakeCache.txt" there is a correct path entry for libiconv.a. I cannot find and entry regarding iconv in other files in build/ directory however. Is there missing an additional entry somewhere or what could be wrong?
I tried to do the whole process a few times. I managed to resolve all issues I had, but I always have a problem with linking mariadb client. Linker just does not found libiconv functions that should be exported in libiconv library. Path to library that I pass in command line (see guide) is correct, I really don't understand what could be wrong. Any idea what to try?
I also tried with Mysql connector, but it seems there are even more issues when building it for Android than with mariadb client. I also don't understand, why Qt Mysql plugin is available prebuilt for other platforms, but not for Android (not even in commercial version).
Bookmarks