long blogs

进一步有进一步惊喜


  • Home
  • Archive
  • Tags
  •  

© 2025 long

Theme Typography by Makito

Proudly published with Hexo

QT-源码编译

Posted at 2025-08-30 c-cpp 

Winows环境编译

从阿里云镜像下载源码:

1
https://mirrors.aliyun.com/qt/official_releases/qt/6.8/6.8.3/single/qt-everywhere-src-6.8.3.zip

环境准备

  • python
  • ninja
  • vs2022+C++桌面开发

步骤

1、解压,
2、进入编译环境 x64 Native Tools Command Prompt的命令行中
3、执行脚本完成配置安装

1
2
3
4
mkdir build 
cd build
../configure.bat -static -prefix "D:\QT_6.8.3\msvc" -debug-and-release
ninja install

踩坑记录

  • mingw的环境会影响到,需要先关闭掉
  • 编译会很慢并且占用150G左右的磁盘空间

Share 

 Previous post: clion-build输出乱码解决方案 Next post: 如何成为失控时代的掌控者 

© 2025 long

Theme Typography by Makito

Proudly published with Hexo