Install Qt 4.5.3 for Windows with VS2005
1. get qt-win-opensource-src-4.5.3.zip from ftp or file server
2. extract zip file to c:\qt\
3. cd C:\Qt\qt-win-opensource-src-4.5.3 (check the path in your system)
4. C:\Program Files\Microsoft Visual Studio 8\VC\bin\vsvars32.bat
5. configure -platform win32-msvc2005 -no-qt3support
5.1. wait for a while
6. nmake
6.1. wait for a while
7. Add system variable "QTDIR=C:\Qt\qt-win-opensource-src-4.5.3" & "PATH=C:\Qt\qt-win-opensource-src-4.5.3\bin;%PATH%"
MySQL for Qt
1. Install MySQL with development files (%QTDIR% == C:\Qt\qt-win-opensource-src-4.5.3)
2. C:\Program Files\Microsoft Visual Studio 8\VC\bin\vsvars32.bat
3. cd %QTDIR%\src\plugins\sqldrivers\mysql
4. qmake "INCLUDEPATH+='C:\Program Files\MySQL\MySQL Server 5.1\include'" "LIBS+='C:\Program Files\MySQL\MySQL Server 5.1\lib\opt\libmysql.lib'" mysql.pro
5. nmake
6. Check result. (you will see files in %QTDIR%\plugins\sqldrivers)
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言