build static Qt 5.12.0
-
Hi,
I try to create static build with Qt 5.12.0.
I made it like in this video Qt Static Build on Windows, but the compile point there are many errors like in the pictures.
...
The steps bevore compiling:
- download and install NDP472-KB4054530-x86-x64-AllOS-ENU.exe (Microsoft .NET Framework 4.7.2)
- download and install Windows6.1-KB2506143-x64.msu
- download and install "mingw730_32" with the Qt installer
- download "windows-build-qt-static.ps1"
- download and install "7z1900.exe"
- creat following run.bat.txt file
PowerShell -NoProfile -ExecutionPolicy Bypass -Command "& 'C:\Qt_Stand_20_03_18\windows-build-qt-static.ps1' -QtSrcUrl 'C:\Qt_Stand_20_03_18\qt-everywhere-src-5.12.0.zip' -QtStaticDir 'C:\Qt_Stand_20_03_18\Static_5_12' -MingwDir 'C:\Qt_Stand_20_03_18\Tools\mingw730_32' -QtVersion '12.5.0_Static'
(In the run.bat.txt file, I can not download the file from the URL, as in the video, so I download the ZIP file before running the run.bat command and change the code in the .txt file File as above, is this the right way?)
If I try it like in the video the following error is coming like in the following picture)
-
open the cmd:
-
run the command "ren run.bat.txt run.bat"
-
remove the following comands in the "windows-build-qt-static.ps1" file
cmd /c "configure.bat -static
-debug-and-release -platform win32-g++ -prefix $QtDir
-qt-zlib -qt-pcre -qt-libpng -qt-libjpeg -qt-freetype -opengl desktop -qt
-sql-sqlite -no-openssl
-
run thet command "run.bat"
-after that I get the compiling errors
I'm working with windows 7 enterprise.
I hope somewone can help me what I'm doing wrong or can tell me a better way for doing it.
Thank you in advance
Regards