Hello, I decided to make an application to manage my database with Qt and found out that I need to re-compile Qt in order to get MySQL plugin to work. So, I've installed MinGW and tried to compile it.

First of all, I had to configure, so I used following command:
Qt Code:
  1. configure -static -release -nomake examples -nomake demos -platform win32-g++ -qt-sql-mysql
To copy to clipboard, switch view to plain text mode 

And to compile:
Qt Code:
  1. mingw32-make
To copy to clipboard, switch view to plain text mode 

Then I had some errors about missing win32-g++, but I fixed it by adding env paths in Windows. After that, I received error about missing mysql.h header, so I downloaded MySQL connector from this URL: http://www.mysql.com/downloads/connector/cpp/.
Now I'm getting this error:
Qt Code:
  1. In file included from kernel\qsqldatabase.cpp:54:0:
  2. kernel\/../drivers/mysql/qsql_mysql.h:108:33: error: expected ')' before '*' tok
  3. en
  4. mingw32-make[2]: *** [tmp/obj/release_static/qsqldatabase.o] Error 1
  5. mingw32-make[2]: Leaving directory `E:/Qt/2010.05/qt/src/sql'
  6. mingw32-make[1]: *** [release] Error 2
  7. mingw32-make[1]: Leaving directory `E:/Qt/2010.05/qt/src/sql'
  8. mingw32-make: *** [sub-sql-make_default-ordered] Error 2
To copy to clipboard, switch view to plain text mode 

Basing on this log I suppose that error is at line 108, but this line doesn't tell me much:
Qt Code:
  1. Q_UNUSED(tc);
To copy to clipboard, switch view to plain text mode 

Is there anyone that could assist me with fixing this?