剛使用VC編譯過(guò)了QT4.7,具體步驟如下:
1.下載QT源碼壓縮包:
http://download.qt.nokia.com/qt/source/qt-everywhere-opensource-src-4.7.4.zip
2.解壓壓縮包到D盤(pán)下
3.添加系統(tǒng)變量PATH=D:\qt-everywhere-opensource-src-4.7.4\bin
QTDIR=D:\qt-everywhere-opensource-src-4.7.4
4.cmd進(jìn)入vc目錄執(zhí)行vcvars32.bat
5.進(jìn)入QT目錄執(zhí)行configure
6.輸入o選擇開(kāi)源項(xiàng)目
7.配置完成后執(zhí)行nmake進(jìn)行編譯