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:
configure -static -release -nomake examples -nomake demos -platform win32-g++ -qt-sql-mysql
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:
mingw32-make
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:
In file included from kernel\qsqldatabase.cpp:54:0:
kernel\/../drivers/mysql/qsql_mysql.h:108:33: error: expected ')' before '*' tok
en
mingw32-make[2]: *** [tmp/obj/release_static/qsqldatabase.o] Error 1
mingw32-make[2]: Leaving directory `E:/Qt/2010.05/qt/src/sql'
mingw32-make[1]: *** [release] Error 2
mingw32-make[1]: Leaving directory `E:/Qt/2010.05/qt/src/sql'
mingw32-make: *** [sub-sql-make_default-ordered] Error 2
In file included from kernel\qsqldatabase.cpp:54:0:
kernel\/../drivers/mysql/qsql_mysql.h:108:33: error: expected ')' before '*' tok
en
mingw32-make[2]: *** [tmp/obj/release_static/qsqldatabase.o] Error 1
mingw32-make[2]: Leaving directory `E:/Qt/2010.05/qt/src/sql'
mingw32-make[1]: *** [release] Error 2
mingw32-make[1]: Leaving directory `E:/Qt/2010.05/qt/src/sql'
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:
Q_UNUSED(tc);
Q_UNUSED(tc);
To copy to clipboard, switch view to plain text mode
Is there anyone that could assist me with fixing this?
Bookmarks