mirror of
git://code.qt.io/qt/qt5.git
synced 2026-04-18 19:16:21 +08:00
Update required tools for building Qt
* Only Ninja generator is officially supported * qtdeclarative requires Python 3 * We do not require Perl anymore Also fix some spelling & links. Change-Id: Ifc4685a17fc5f24d13f1e3572d9318929cff9987 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
27
README.md
27
README.md
@@ -1,23 +1,19 @@
|
|||||||
HOW TO BUILD Qt6
|
HOW TO BUILD Qt 6
|
||||||
================
|
=================
|
||||||
|
|
||||||
|
|
||||||
Synopsis
|
Synopsis
|
||||||
========
|
========
|
||||||
|
|
||||||
System requirements
|
System requirements
|
||||||
------------------
|
-------------------
|
||||||
|
|
||||||
* CMake 3.18 or later
|
|
||||||
* Perl 5.8 or later
|
|
||||||
* Python 2.7 or later
|
|
||||||
* C++ compiler supporting the C++17 standard
|
* C++ compiler supporting the C++17 standard
|
||||||
|
* CMake 3.16 or newer
|
||||||
|
* Ninja 1.8 or newer
|
||||||
|
* Python 3
|
||||||
|
|
||||||
It's recommended to have ninja 1.8 or later installed.
|
For more details, see also https://doc.qt.io/qt-6/build-sources.html
|
||||||
|
|
||||||
For other platform specific requirements,
|
|
||||||
please see section "Setting up your machine" on:
|
|
||||||
http://wiki.qt.io/Get_The_Source
|
|
||||||
|
|
||||||
Linux, Mac:
|
Linux, Mac:
|
||||||
-----------
|
-----------
|
||||||
@@ -34,8 +30,7 @@ Windows:
|
|||||||
1. Open a command prompt.
|
1. Open a command prompt.
|
||||||
2. Ensure that the following tools can be found in the path:
|
2. Ensure that the following tools can be found in the path:
|
||||||
* Supported compiler (Visual Studio 2019 or later, or MinGW-builds gcc 8.1 or later)
|
* Supported compiler (Visual Studio 2019 or later, or MinGW-builds gcc 8.1 or later)
|
||||||
* Perl version 5.12 or later [http://www.activestate.com/activeperl/]
|
* Python 3 ([https://www.python.org/downloads/windows/] or from Microsoft Store)
|
||||||
* Python version 2.7 or later [http://www.activestate.com/activepython/]
|
|
||||||
* Ruby version 1.9.3 or later [http://rubyinstaller.org/]
|
* Ruby version 1.9.3 or later [http://rubyinstaller.org/]
|
||||||
|
|
||||||
```
|
```
|
||||||
@@ -46,13 +41,14 @@ cmake --build .
|
|||||||
|
|
||||||
More details follow.
|
More details follow.
|
||||||
|
|
||||||
|
|
||||||
Build!
|
Build!
|
||||||
======
|
======
|
||||||
|
|
||||||
Qt is built with CMake, and a typical
|
Qt is built with CMake, and a typical
|
||||||
`configure && cmake --build .` build process is used.
|
`configure && cmake --build .` build process is used.
|
||||||
|
|
||||||
If ninja is installed, it is automatically chosen as CMake generator.
|
If Ninja is installed, it is automatically chosen as CMake generator.
|
||||||
|
|
||||||
Some relevant configure options (see configure -help):
|
Some relevant configure options (see configure -help):
|
||||||
|
|
||||||
@@ -101,7 +97,8 @@ to your `PATH` environment variable to access them.
|
|||||||
|
|
||||||
|
|
||||||
Building Qt from git
|
Building Qt from git
|
||||||
=====================
|
====================
|
||||||
|
|
||||||
See http://wiki.qt.io/Building_Qt_6_from_Git and README.git
|
See http://wiki.qt.io/Building_Qt_6_from_Git and README.git
|
||||||
for more information.
|
for more information.
|
||||||
See http://wiki.qt.io/Qt_6 for the reference platforms.
|
See http://wiki.qt.io/Qt_6 for the reference platforms.
|
||||||
|
|||||||
Reference in New Issue
Block a user