I'm getting this error when executing my program:
QSqlDatabase: QMYSQL driver not loaded
QSqlDatabase: available drivers: QSQLITE QODBC3 QODBC

I tried compiling mysql (in the same way as it's shown in documention for SQLite) but I'm getting there errors aswell.

Any suggestions?