星期四, 7月 10, 2008

Qt4.4.0 with Visual C++ 2005 express on Windows

just a little bit different from Qt4.4.0 with VC6.

My experience about compiling Qt 4.4.0 with Visual C++ 2005 on Windows is as below.

1. Get the Qt 4.4.0 source from Trolltech
2. extrat the source pack to c:\qt4-src
3. set environment variable
PATH=%PATH%;c:\qt4\bin
QTDIR=c:\qt4
QMAKESPEC=win32-msvc2005
4. Get Platform SDK 2003 R2 & Install
5. run visual studio command mode & call %PLATFORMSDK%\setenv.bat /RETAIL
6. cd c:\qt4-src
7. copy the qt4-src/mksepc/ to qt4/mkspec
8. configure.exe -prefix c:\qt4 (see more options by using "configure -help")
9. run 'nmake' to compiling the source, wait 1hr (CPU - C2D 1.83G).
10. finally, we got what we expect.

PS: using vc 2005 compiler will get MMX, SSE, SSE2, WEBKIT support.

沒有留言: