Skip to content

Instantly share code, notes, and snippets.

@dkw72n
Created July 31, 2018 09:31
Show Gist options
  • Select an option

  • Save dkw72n/8cdde7e5433d97c6ea3321a9c5c0640f to your computer and use it in GitHub Desktop.

Select an option

Save dkw72n/8cdde7e5433d97c6ea3321a9c5c0640f to your computer and use it in GitHub Desktop.
编译 QT 静态库
  • 进入 Native Tools Command Prompt for VS2017

  • 创建一个目录 %DIR%, cd /d %DIR%, 这个目录是构建目录

  • 运行 PATH\TO\QT\SOURCE\configure.bat -developer-build -confirm-license -debug-and-release -opensource -platform win32-msvc -opengl desktop -static -nomake examples -nomake tests -mp -qt-zlib -qt-pcre -qt-libpng -qt-libjpeg -prefix c:\qt\Static\vs2017_x64_5.10.1, 会在目录下生成构建需要的文件

  • nmake, 然后 nmake install.

That's it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment