QT3.3.4(for mingw)安装和编译
0. 下载qt-win-free-3.3.4-3-src.tar.bz2()
并解压(假设解压到目录c:\qt-win-free-mingw-3.3.4-3)
1. 安装mingw4.1.1(假设安装目录为c:\mingw)
2. 设置环境变量
打开命令行(cmd)
c:\>set QTDIR=c:\qt-win-free-mingw-3.3.4-3
c:\>set MINGW=c:\mingw
c:\>set PATH=%QTDIR%\bin;%MINGW%\bin;%PATH%
c:\>set QMAKESPEC=win32-g++
3. build Qt
c:\>cd qt-win-free-mingw-3.3.4-3
c:\qt-win-free-mingw-3.3.4-3>configure.bat -fast -verbose
4.将mingw/bin下的mingw-make.exe复制一份并改名为make.exe.否则make命令将无法使用。
阅读(2114) | 评论(0) | 转发(0) |