for Visual studio 2005 mkspecs\win32-msvc2005\qmake.conf
for Visual studio 2008 mkspecs\win32-msvc2008\qmake.conf
change
QMAKE_CFLAGS = -nologo -Zm200 -Zc:wchar_t-
to
QMAKE_CFLAGS = -nologo -Zm200 -MP -Zc:wchar_t-
星期二, 1月 26, 2010
Speeding up Visual C++ Qt Builds (jom)
1. extract jom binary to %QTDIR%\bin
2. run jom instead of nmake
binary stored place: ftp://ftp.qt.nokia.com/jom/
2. run jom instead of nmake
binary stored place: ftp://ftp.qt.nokia.com/jom/
Install Qt 4.5.3 for Windows with VS2005
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)
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)