当前位置:网站首页>Upgrade win10sp1 to the latest version; Qt5.9.6 static compilation (network is valid)
Upgrade win10sp1 to the latest version; Qt5.9.6 static compilation (network is valid)
2022-07-22 18:54:00 【Moon cave】
win10sp1 Upgrade to the latest version
QT Static compilation environment settings
(1) Get ready
1. thunderbolt :python-3.5.1 -》 The installation to C:\Python35, Check add to path during installation
https://www.python.org/ftp/python/3.5.1/python-3.5.1.exe
2. thunderbolt :ActivePerl-5.22.1.2201 -》 The installation to C:\Perl64
3.CSDN:openssl-1.0.1c_static_w32_mingw.rar-》 Unzip to 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-》 The installation to C:\Ruby27-x64
5. thunderbolt :Qt5.9.6 qt-opensource-windows-x86-5.9.6.exe-》 The installation to 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. thunderbolt :Qt5.9.6 qt-everywhere-opensource-src-5.9.6.zip-》 Unzip to 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) start-up cmd
(3) Check
(4) Configuration related
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
Wait about 10 minute
(5)make
mingw32-make
Wait about 3 Hours
(6)make install
mingw32-make install
Wait about 20 minute
(7) modify qmake.conf
(8) Copy some files
1. Copy in the dynamic library C:\Qt\Qt5.9.6\5.9.6\mingw53_32\bin\qmlscene.exe
To the static library C:\Qt\Qt5.9.6_MinGW_static\bin In the folder .
If you don't copy, then in Qt Creator Add Qt Library time report qmlscene Error not installed .
2. Copy in the dynamic library C:\Qt\Qt5.9.6\5.9.6\mingw53_32\bin\Qt5Core.dll To static link Version of C:\Qt\Qt5.9.6_MinGW_static\lib In the folder .
If you do not perform this step , stay Creator Of Qt Version Will display “x86-windowsunknown-pe-32bit”.
3. The version will be dynamically compiled C:\Qt\Qt5.9.6\5.9.6\mingw53_32\qml\QtQuick\Controls Zhongsuo Some files are copied to
C:\Qt\Qt5.9.6_MinGW_static\qml\QtQuick\Controls
If there are the same files, skip .
(9)QtCreator Some configuration of
Be accomplished
边栏推荐
猜你喜欢
随机推荐
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/mysqli.so'
07. Composite/aggregate Reuse Principle (carp)
LeetCode 693. 交替位二进制数
When serializing JSON objects, how to return JSON strings with attribute names with null values?
LeetCode 114. 二叉树展开为链表
OSI model, tcp/ip model
PCV, PIL, pilot installation
Strncpy() copy string (limited by length)
04. interface aggregation principle
BigDecimal中除法divide()方法的详细解析,带你走进源码的world
05. Law of Demeter LOD
PAT乙级1020月饼(注意测点)
Practice 7-7 matrix operation (20 points)
JSON序列化对象时,如何返回有空值的带属性名称json字符串?
PTA exercises 8-6 delete characters
Six dimensional space
bjyx
华为手机锁定应用
sql 语法中 join 的所有用法总结(简单例子)
LeetCode 653. 两数之和 IV - 输入 BST