Qt - Database Module in Windows 7 and Linux
-
you might use QODBC. Then you should download mysql odbc connector from http://dev.mysql.com/downloads/connector/odbc/5.1.html
-
-
when you donwloaded Qt sources, unzip them to a folder: <QTDIR>.
Open a MSVS command prompt, go to <QTDIR>, call configure --help
then call configure with the parameters you need, there you casn specify, which DB-drives should be compiled. For some of them, you need some extra libraries (Orcale etc.).
when confige is through, you can call nmake and it builds Qt. But in between, you get go and have some coffee (or some more, it takes time). If you want to build Qt in a way, it can be statically linked, look at this wiki page (in the example, gcc is used, but static build with MSVS is nearly the same...): "BuildStaticQtForWindowsWithGccGerman":http://developer.qt.nokia.com/wiki/BuildStaticQtForWindowsWithGccGerman I'm pretty shure, gcc can also build 64 bit binaries.If you search thge wiki, you could also find this article: "#
Building Qt Desktop for Windows with MSVC":http://developer.qt.nokia.com/wiki/Building_Qt_Desktop_for_Windows_with_MSVC
-
[quote author="mohsen" date="1295784462"]download the MSVS2008 compiled binaries of Qt and Qt Addin. It seems it's not allowed to compile for MSVS2008 manually in OpenSource version. [/quote]
This is wrong. The (L)GPL version does not have any constraints about the compilers. Qt/Nokia does not provide prebuilt binaries, though. Nothing prevents you from compiling yourself.
-
In earlier versions, the MSVS integration was not in Open source editiopns, and perhaps the MSVS configs. But is was never said, that compiler might not be used. Before 4.x (3?), k there was no open source version for windows....
with Qt 4.3, there was a "minGW version for open source for windows":http://labs.qt.nokia.com/2007/09/18/qtwindows-open-source-edition-to-support-vs-express/
As stated in that article, since 4.4 it is also open source for windows with MSVS compiler.