星期三, 7月 09, 2008

Qt4.4.0 with Visual C++ 6.0 on Windows

Qt support compiler on Windows other than Mingw from Qt 4.3.x, but user has to compile the source by own.

My experience about compiling Qt 4.4.0 with Visual C++ 6.0 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-msvc
4. cd c:\qt4-src
5. copy the qt4-src/mksepc/ to qt4/mkspec
6. configure.exe -prefix c:\qt4 (see more options by using "configure -help")
7. run 'nmake' to compiling the source, wait 1hr (CPU - C2D 1.83G).
8. finally, we got what we expect.

沒有留言: