当前位置: 首页 > news >正文

Windows下编译qt-src-5.15.10

首先从镜像站点下载qt源码:

https://download.qt.io/static/mirrorlist/               下载QT的镜像站点

下载源码后解压到  F:  盘

创建编译目录F:\qtbuild

打开VS2019的  X64 Native Tools Command Prompt for VS 2019

进入到源码目录 cd   F:\qt-everywhere-opensource-src-5.15.10

执行

configure.bat  -prefix  "F:\qtbuild"  -opensource  -shared  -static  -compile-examples  -nomake tests
Note: Overriding option 'shared' with 'no' (was: 'yes')Note: Using static linking will disable the use of dynamically
loaded plugins. Make sure to import all needed static plugins,
or compile needed modules into the library.Note: No wayland-egl support detected. Cross-toolkit compatibility disabled.Note: The following modules are not being compiled in this configuration:webenginecorewebenginewebenginewidgetspdfpdfwidgetsWARNING: Python version 2 (2.7.5 or later) is required to build QtWebEngine.WARNING: Python version 2 (2.7.5 or later) is required to build QtPdf.WARNING: QtWebEngine will not be built.WARNING: QtPdf will not be built.Qt is now configured for building. Just run 'nmake'.
Once everything is built, you must run 'nmake install'.
Qt will be installed into 'F:\qtbuild'.Prior to reconfiguration, make sure you remove any leftovers from
the previous build.

出现上面的内容,代表配置成功, 接下来就可以编译了。

执行nmake开始编译

nmake
nmake  install

安装后相关的库和头文件都在 F:\qtbuild 里面,就可以使用了

http://www.lryc.cn/news/144595.html

相关文章:

  • 有关linux排查服务器资源问题
  • 【设计模式】Head First 设计模式——观察者模式 C++实现
  • 【ES】笔记-Promise基本使用
  • 服务器数据恢复-reiserfs文件系统损坏如何恢复数据?
  • 直播预告:把脉2023年下半场—主动防御邮箱盗号威胁
  • 专题:平面、空间直线参数方程下的切线斜率问题
  • JavaScript—对象与构造方法
  • 微信小程序社区户口管理的系统设计与实现
  • 闲人闲谈PS之四十六——网络生产全流程
  • 如何在VR头显端实现低延迟的RTSP或RTMP播放
  • 【工具类】提高办公效率(兼具有趣、好玩)
  • navicat连接数据库的方法(易懂)
  • 收支明细管理实操:如何准确记录并修改收支明细?
  • SSL证书的工作原理是怎样的?
  • Java发送请求到第三方(RestTemplate方法)
  • CentOS 7 Nacos 设置开机自动重启
  • 安防监控平台EasyCVR视频汇聚平台增加首页告警类型的详细介绍
  • 构建安全可信、稳定可靠的RISC-V安全体系
  • 3.RabbitMQ 架构以及 通信方式
  • 分布式事务篇-2.1 阿里云轻量服务器--Docker--部署Seata
  • C语言这么没用??
  • Docker运维篇
  • 【数学建模】清风数模正课7 多元线性回归模型
  • 文心一言 VS 讯飞星火 VS chatgpt (83)-- 算法导论8.1 4题
  • 温故知新之:代理模式,静态代理和动态代理(JDK动态代理)
  • 软件工程(十二) 设计模式之创建型模式
  • 使用docker、docker-compose部署微服务
  • 【Axure高保真原型】中继器网格图片拖动摆放
  • 《基于 Vue 组件库 的 Webpack5 配置》4. 压缩 CSS 和 js 文件
  • electron globalShortcut 快捷键,在焦点移到其他软件上时,调用快捷键报错