-debug 只编译出 debug 版本,是默认选项(相对于 -release 选项)
-debug-and-release 两种版本都编译
-opensource 使用 opensource 版本的Qt(相对于 -commercial 选项)
-c++11 打开 C++11 的支持
-shared 使用共享库,是默认选项(相对于 -static 选项)
-skip 移除某模块
-make 添加编译的部分:libs, tools, examples (相对于 -nomake)
-iconv 开启 iconv 的支持
-mp MSVC 多进程编译加速
-developer-build Compile and link Qt with Qt developer options (including auto-tests exporting)
-no-openssl 不编译 openssl
-no-iconv 不编译 iconv
-no-qml-debug 不编译 qml debug 的支持
1.使用编译选项
configure -opensource -platform win32-msvc2013 -developer-build -mp -nomake examples -nomake tests -no-icu -no-openssl -no-iconv -no-qml-debug -skip qtactiveqt -skip qtconnectivity -skip qtdeclarative -skip qtdoc -skip qtenginio -skip qtgraphicaleffects -skip qtimageformats -skip qtlocation -skip qtmultimedia -skip qtquick1 -skip qtquickcontrols -skip qtscript -skip qtsensors -skip qtserialport -skip qtsvg -skip qttools -skip qttranslations -skip qtwebchannel -skip qtwebengine -skip qtwebkit -skip qtwebkit-examples -skip qtwebsockets -skip qtxmlpatterns
2.编译并安装
nmake && nmake install