Skip to content

Commit aaaadc3

Browse files
authored
Update buildinstructions_qt6.txt
1 parent 27fe13b commit aaaadc3

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

buildinstructions_qt6.txt

+18-1
Original file line numberDiff line numberDiff line change
@@ -8,27 +8,44 @@ REQUIRED:
88
-Windows 10/11 SDK (latest)
99
-CMake (winget install Kitware.CMake)
1010
-Ninja (choco install ninja)
11+
-jom (Qt5 only)
1112

1213
With everything in the path, open MSVC2022 prompt (x64 Native Tools Command Prompt for VS 2022):
1314
$mkdir C:\qt5
1415
$cd C:\qt5
1516
$mkdir qt6-build
1617
$git clone https://code.qt.io/qt/qt5.git
1718
$cd qt5
19+
20+
For Qt6:
1821
$git checkout <branch> (ex. 6.2.0, whatever)
1922

23+
For Qt5:
24+
$git checkout <tag> (ex. v5.15.11-lts-lgpl)
25+
2026
If you want to build all of Qt:
2127
$perl init-repository
2228

23-
And if you want just tools (i.e. Linguist), init only tools and dependencies:
29+
And if you want just tools (i.e. Linguist), init only tools and dependencies (for Qt6):
2430
$perl init-repository --module-subset=qtbase,qttools,qtdeclarative,qtactiveqt,qtimageformats,qtshadertools,qtsvg
2531

2632
In any case, build it:
2733
$cd ..\qt6-build
34+
35+
For Qt6:
2836
$..\qt5\configure.bat -release -opensource -platform win32-msvc -static -static-runtime -nomake examples -nomake tests -nomake manual-tests -nomake minimal-static-tests -nomake benchmarks -prefix C:\qt6-static\
2937
$cmake --build . --parallel
3038

3139
If you wish to install:
3240
$cmake --install .
3341

3442
And now you'll have Qt6 static for MSVC2022!
43+
44+
For Qt5:
45+
$..\qt5\configure.bat -release -opensource -platform win32-msvc -static -static-runtime -nomake examples -nomake tests -prefix C:\qt5-static\
46+
$jom
47+
48+
If you wish to install:
49+
$jom install
50+
51+
And now you'll have Qt5 static for MSVC2022!

0 commit comments

Comments
 (0)