[mythtv] Ticket #4270: MythTV on Windows (with MinGW)

Andrei Tanas andrei at tanas.ca
Fri Dec 28 14:20:29 UTC 2007

> I've added your (offline) suggested change to the mysql.h to my
> version, and the wiki, and am currently stuck on the following problem:
> C:\mythtv\mythtv\run>mythfrontend.exe
> QSqlDatabase: QMYSQL3 driver not loaded
> QSqlDatabase: available drivers:
> I'm rebuilding the entire of QT to see if the mysql.h patch fixes the
> lack of "available drivers".  :-(
> any other ideas that might be quicker? (QT's a hog to build)

You need libmysql.dll (comes with MySql) in your path, and libqsqlmysql.dll
(should be built with QT) in a subdirectory called "sqldrivers". That is, if
your libmysql.dll is in C:\MinGW\bin, your libqsqlmysql.dll should be in

I recommend using "Process Monitor"
(http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx) when you
need to find out why a process can't find something.

More information about the mythtv-dev mailing list