Compiling Qt with VS2010 and MySQL
-
wrote on 17 Mar 2011, 18:36 last edited by
Hello
I'm just planning to compile Qt 4.7.2 sources with Visual Studio 2010. I will follow this tutorial:
http://www.holoborodko.com/pavel/2011/02/01/how-to-compile-qt-4-7-with-visual-studio-2010/
I would like to know what do I have to change (following the tutorial) to compile it with QtMySQL enabled, then I don't have to worry about compile further plugins/libs.By the way, will I have to compile anything else anyway to get QtMySQL working?
Thanks
-
wrote on 17 Mar 2011, 19:02 last edited by
Actually, that should be easier than compiling it with the MinGw32. You should be able to use the standard libs from MySql, AFAIK.
-
wrote on 17 Mar 2011, 19:15 last edited by
Thanks for the answer, but I want to know what I do have to modify to compile Qt with VS2010 and QtMySQL. I guess I have to modify something in this line:
configure -debug-and-release -opensource -platform win32-msvc2010
but I'm not sure about this.
-
wrote on 17 Mar 2011, 19:22 last edited by
I would first just compile Qt itself. The MySql driver can be compiled separately later on. A simple Google search will tell you how to do that...
-
wrote on 17 Mar 2011, 19:26 last edited by
So, there's no way to compile Qt and the MySQL driver at once?
-
wrote on 17 Mar 2011, 19:26 last edited by
Sure there is, if you want.
Did you run configure --help?
1/6