Building Qt Sources
You can install Qt by building Qt sources. This is useful if, for example:
- You need a custom build (for example, with patches or debug options).
- Your platform isn't supported by pre-built packages.
- You're contributing to Qt or debugging its internals.
Note: In most use cases, other than those listed above, the best way to install Qt is with Qt Online Installer. See Get and Install Qt with Qt Online Installer.
The installation procedure is different on each Qt platform. This page provides relevant information for the supported platforms and links to module-specific system requirements.
General Installation Information
When you build Qt sources, you use the configure tool to configure Qt for a particular platform with a particular set of Qt features or modules. For more information, see Qt Configure Options.
The Build and Installation Process
A brief overview of the build and installation process:
- Download the Qt source code and set up the initial environment.
- Configure the build according to the use case, such as development on the host system or cross-compilation for a target platform.
- Build (compile) in a separate directory.
- Optional. Install the built artifacts.
Platform-Specific Installation Information
Windows
macOS
Linux/X11
Embedded Linux
Android
iOS
Module-specific System Requirements
- Building Qt WebEngine from Source
- Building Qt Quick 3D from Source
- Building Qt Multimedia from Source
- Qt GRPC and Qt Protobuf Module Requirements
Additional Information
The top-level qt5 Git repository contains a set of build instructions in the form of provisioning scripts, used by Qt's continuous integration (CI) system to build and test the Supported Platforms. These scripts are useful for anyone building Qt from source, as they provide information on the tools and components that are required for each configuration.
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.