qt 5.1.1静态编译

qt-everywhere-opensource-src-5.1.1.zip
下载 安装Python27

开始=>程序=>Microsoft Visual Studio 2010=>Visual Studio Tools=>Visual Studio 命令提示(2010)
复制代码
  1. SET PATH=%PATH%;"C:\Python27";
  2. cd E:\Qt\Qt5.1.1\5.1.1\Src
  3. configure -prefix "E:\Qt\Qt5.1.1_vs2010_x86" -confirm-license -opensource -debug-and-release -static -platform win32-msvc2010 -qt-zlib -qt-libpng -qt-libjpeg -qt-sql-sqlite -plugin-sql-sqlite -qt-style-windows -qt-style-windowsxp -nomake examples -nomake tests -nomake tools -opengl desktop -mp -skip qtwebkit
  4. nmake
  5. nmake install

================================
编译mysql驱动

开始=>程序=>Microsoft Visual Studio 2010=>Visual Studio Tools=>Visual Studio 命令提示(2010)
复制代码
  1. cd E:\Qt\Qt5.1.1\5.1.1\Src\qtbase\src\plugins\sqldrivers\mysql;
  2. E:\Qt\Qt5.1.1_vs2010_x86\bin\qmake.exe -o Makefile INCLUDEPATH+="E:\Qt\mysql-5.1.40\include" LIBS+="E:\Qt\mysql-5.1.40\lib\opt\libmysql.lib" mysql.pro
  3. nmake
  4. nmake install

你可能感兴趣的:(c++)