I successfull built qt5.5.1 with mysql plugin on from sources for a desktop use.
Now, my goal is to modify the configuration of Qt in yocto to add this plugin. I tried by doing this :
In my local.conf :
PACKAGECONFIG_append_pn-qtbase = " sql-mysql"
In the config.summary file generated in output build directory, Mysql is checked as qt (so I guess that qt embedd directly sql feature).
But in the output build directory there is no sqldriver directory in plugins directory. During the compilation, I saw that mysql and mariadb was compiled so I guess that the added line in local.conf has an effect.
By reading manual of configure file of qt (from everywhere tarball) one has to add -plugin-sql-mysql to configure script. However, there is no such option in the qtbase_git.bb file from meta-qt5 :
PACKAGECONFIG[sql-mysql] = "-sql-mysql,-no-sql-mysql,mysql5"
So is there a way to add plugin in qt configuration using Yocto ? Or maybe I have to compile qt from sources with cross compiler ? (not better way cause I would lie to keep all configuration in yocto side).