当前位置:网站首页>win10sp1升到最新版本;QT5.9.6静态编译(network有效)
win10sp1升到最新版本;QT5.9.6静态编译(network有效)
2022-07-22 09:12:00 【氺月洞天】
win10sp1升到最新版本
QT静态编译环境设置
(1)准备
1.迅雷:python-3.5.1 -》安装到C:\Python35,安装时勾选添加到路径
https://www.python.org/ftp/python/3.5.1/python-3.5.1.exe
2.迅雷:ActivePerl-5.22.1.2201 -》安装到C:\Perl64
3.CSDN:openssl-1.0.1c_static_w32_mingw.rar-》解压到C:\Qt\openssl-1.0.1c_static_w32_mingw
openssl-1.0.1c_static_w32_mingw.rar
4.CSDN:rubyinstaller-2.7.0-1-x64-》安装到C:\Ruby27-x64
5.迅雷:Qt5.9.6 qt-opensource-windows-x86-5.9.6.exe-》安装到C:\Qt\Qt5.9.6
http://download.qt.io/archive/qt/5.9/5.9.6/qt-opensource-windows-x86-5.9.6.exe
6.迅雷:Qt5.9.6 qt-everywhere-opensource-src-5.9.6.zip-》解压到D:\qt-everywhere-opensource-src-5.9.6
http://download.qt.io/archive/qt/5.9/5.9.6/single/qt-everywhere-opensource-src-5.9.6.zip
(2)启动cmd
(3)检查
(4)配置相关
configure.bat -static -release -platform win32-g++ -prefix "C:\Qt\Qt5.9.6_MinGW_static" -qt-sqlite -qt-zlib -qt-pcre -qt-libpng -qt-libjpeg -qt-freetype -opengl desktop -openssl-linked -opensource -confirm-license -make libs OPENSSL_LIBS="-llibssl -llibcrypto -lgdi32" -L C:\Qt\openssl-1.0.1c_static_w32_mingw -I C:\Qt\openssl-1.0.1c_static_w32_mingw\include -nomake tools -nomake examples -nomake tests -skip qt3d -skip qtcanvas3d -skip qtcanvas3d -skip qtdatavis3d -skip qtlocation -skip qtwayland -skip qtwebchannel -skip qtwebengine -skip qtwebsockets -skip qtwebview -skip qtwinextras
等大概10分钟
(5)make
mingw32-make
等大概3小时
(6)make install
mingw32-make install
等大概20分钟
(7)修改qmake.conf
(8)拷贝一些文件
1.复制动态库中 C:\Qt\Qt5.9.6\5.9.6\mingw53_32\bin\qmlscene.exe
到静态库 C:\Qt\Qt5.9.6_MinGW_static\bin文件夹中。
如果不拷贝则在Qt Creator中添加Qt库时会报qmlscene未安装的错误。
2.复制动态库中 C:\Qt\Qt5.9.6\5.9.6\mingw53_32\bin\Qt5Core.dll到静态链接 版的C:\Qt\Qt5.9.6_MinGW_static\lib文件夹中。
如果不执行此步,在Creator的Qt Version中将会显示“x86-windowsunknown-pe-32bit”。
3.将动态编译版本 C:\Qt\Qt5.9.6\5.9.6\mingw53_32\qml\QtQuick\Controls中所 有的文件拷贝到
C:\Qt\Qt5.9.6_MinGW_static\qml\QtQuick\Controls
如果有相同的文件则跳过。
(9)QtCreator的一些配置
大功告成
边栏推荐
猜你喜欢
【Nordic】nRF52810 OTA升级(二)–DFU如何使用
Simple demonstration and prevention of CSRF attack in PHP development
数据湖简单记录
[audio] transplant wm8978 audio codec driver based on STM32 I2S
【SDIO】SD2.0协议分析总结(二)-- SD卡识别&数据传输过程
Date对象简介
[STM32] STM32 SDIO SD card read / write test (I) -- SD card hardware design and software migration
sql注入
枚举对象中属性
【STM32】STM32 SDIO SD卡读写测试(一)-- SD卡硬件设计和软件移植
随机推荐
Simple demonstration and prevention of CSRF attack in PHP development
总结20220121
Internet download manager2022 intelligent win latest version Downloader
【SDIO】SDIO、SD卡、FatFs文件系统相关文章索引
C language simple TCP server program
creating vlan over openstack (by quqi99)
全局作用域和函数作用域
MySQL优化之强制索引的使用
ECSHOP need to modify the folder and file of permission? The error directory cannot be written
【SDIO】SD2.0協議分析總結(三)-- SD卡相關命令介紹
小程序获取节点绑定数据data-index的方法
arguments
协议与端口
DOM简介及查询
ecshop 需要修改权限的文件夹及文件? 报错目录不可写入
【SDIO】SD2.0协议分析总结(三)-- SD卡相关命令介绍
为什么chrome视频时卡得厉害(by quqi99)
总结20220213(floyd和dijkstra)
Unity:素材下载
LeetCode: 596. 超过5名学生的课