i've taken up this little project again..
used https://github.com/0x-ff/libmysql-android to build the plugin for android_armv7..
wasnt able to use qtcreator to build the mysql.pro
so had to do it in terminal..
stingray@laptop:~/Qt/5.3/Src/qtbase/src/plugins/sqldrivers/mysql$ ~/Qt/5.3/android_armv7/bin/qmake "INCLUDEPATH+=/usr/include/mysql" "LIBS+=-L/home/stingray/Qt/Projekt/libs/android/android14-arm -lmysqlclient_r" mysql.pro
stingray@laptop:~/Qt/5.3/Src/qtbase/src/plugins/sqldrivers/mysql$ make
stingray@laptop:~/Qt/5.3/Src/qtbase/src/plugins/sqldrivers/mysql$ ~/Qt/5.3/android_armv7/bin/qmake "INCLUDEPATH+=/usr/include/mysql" "LIBS+=-L/home/stingray/Qt/Projekt/libs/android/android14-arm -lmysqlclient_r" mysql.pro
stingray@laptop:~/Qt/5.3/Src/qtbase/src/plugins/sqldrivers/mysql$ make
To copy to clipboard, switch view to plain text mode
the only thing is the LIBS path have to point to where you have dl'ed the android14-arm and unpacked them..
anyway it seems to work as it should on my android 3.2 htc flyer.. have not tested on emulator..
as right now i have to rebuild my gui after a little misshap during december when i thought i had backed up my project folder, but it was a old version.. but hey, one step forward three backwards.. one day it might accually be finnished.. hehe..
Bookmarks