VS2010编译安装Qt4.8.2

1: 安装VS2010

2:下载好qt-everywhere-opensource-src-4.8.2.tar.gz 解压,我解压至e:/ qt-everywhere-opensource-src-4.8.2

3:进入开始菜单Microsoft Visual Studio 2010,Visual Studio Tools,Visual Studio Command Prompt (2010)

4:在命令终端输入

set QTDIR= e:/ qt-everywhere-opensource-src-4.8.2

set QMAKESPEC=win32-msvc2010

5: configure -platform win32-msvc2010 -debug-and-release -opensource -static -fast -qt-sql-sqlite -plugin-sql-sqlite -no-qt3support -qt-zlib -qt-libpng -qt-libmng -qt-libtiff -qt-libjpeg -no-webkit -qt-style-windowsxp -qt-style-windowsvista -nomake examples -nomake docs -nomake demos

6:运行完configure后运行 namke

7:添加环境变量

QTDIR= e:/ qt-everywhere-opensource-src-4.8.2/

Path=%QTDIR%bin

8:安装qt-vs-addin-1.1.10.exe

你可能感兴趣的:(VS2010编译安装Qt4.8.2)