Compile Static Qt 6.6.3 in 2025
- Let’s start with downloading Qt but you’ll need to create an account first and then download the Qt OSS.
- Let’s install Qt suite with:
- Qt 6.6.3
- Build Tools\MinGW 11.2.0 64-bits
- Build Tools\CMake 3.23.3
- Build Tools\Ninja 1.12.0
- Build Tools\OpenSSL 3.0.16 Toolkit
- Qt Creator 15.0.1
- Open a cmd window in administrator mode
- Set PATH=C:\Qt\Tools\mingw1120_64\bin;%PATH%
- Set PATH=C:\Qt\Tools\CMake_64\bin;%PATH%
- Set PATH=C:\Qt\Tools\Ninja;%PATH%
- cd C:\Qt
- mkdir 6.6.3-static-mingw
- ..\6.6.3\Src\configure.bat -static -release -prefix C:/Qt/6.6.3-static-mingw -platform win32-g++ -opensource -confirm-license -nomake examples -nomake tests -static-runtime -no-pch
- cmake –build . –parallel
- cmake –install .
Si erreur
- cd C:\Qt\
- rd /s /q C:\Qt\6.6.3-static-mingw
- mkdir 6.6.3-static-mingw
- cd 6.6.3-static-mingw
- Start again tutorial
Si erreur avec « file too long »
New-ItemProperty -Path « HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem » -Name « LongPathsEnabled » -Value 1 -PropertyType DWORD -Force
or
reg
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem]
« LongPathsEnabled »=dword:00000001
0 commentaire