2020-08-03 手动编译Qt库(msvc2019版本)

  • Qt Windows exe应用程序部署指南:https://doc.qt.io/qt-5/windows-deployment.html

-skip qtwebengine
qtwebengine不支持static
configure.bat -static -release -opensource -confirm-license -platform win32-msvc -mp -prefix "C:\Qt\5.15.0_MSVC2019_Static" -qt-sqlite -qt-zlib -qt-libpng -qt-libjpeg -opengl desktop -qt-freetype -no-qml-debug -no-angle -nomake tests -nomake examples -skip qtwebengine


Windows下为了编译QtWebEngine组件,必须安装好Windows版本的perl和python2.7.18,QtWebEngine的编译系统并不支持python3.x

  • 使用-static生成静态Qt库

configure.bat -static -release -opensource -confirm-license -platform win32-msvc -mp -prefix "C:\Qt\5.15.0_MSVC2019_Static" -qt-sqlite -qt-zlib -qt-libpng -qt-libjpeg -opengl desktop -qt-freetype -no-qml-debug -no-angle -nomake tests -nomake examples

configure.bat -confirm-license -opensource -platform win32-msvc -mp -debug-and-release -static -prefix "D:\Qt\5.15.0_MSVC_Static" -qt-sqlite -qt-zlib -qt-libpng -qt-libjpeg -opengl desktop -qt-freetype -no-qml-debug -no-angle -nomake tests -nomake examples

附录

参考:

  • https://doc.qt.io/qt-5/windows-building.html
  • https://doc.qt.io/qt-5/qtwebengine-platform-notes.html#building-qt-webengine-from-source
  • https://stackoverflow.com/questions/50510457/how-to-compile-qt-webengine-5-11-on-windows-with-proprietary-codecs/50510458#50510458
  • 参考CSDN: https://blog.csdn.net/xiaohai7521s/article/details/90770200
  • 参考CSDN: https://blog.csdn.net/startl/article/details/106600031
  • 参考腾讯博客1:https://cloud.tencent.com/developer/article/1343630
2020-08-03 手动编译Qt库(msvc2019版本)_第1张图片

你可能感兴趣的:(2020-08-03 手动编译Qt库(msvc2019版本))