- Qt Documentation
- Contents
- Supported Configurations
- Requirements for Development Host
- Debian/Ubuntu (apt-get)
- Fedora/RHEL/CentOS (yum)
- openSUSE (zypper)
- Building Qt 5 from Source
- Deployment and Other Issues
- Where to Go from Here
- Offline Qt Downloads
- Qt6 Source Packages
- Qt 6.2.0 Source Packages:
- Older Qt Versions
- Qt 5.15.x Source Packages
- 5.12.x Offline Installers
- Qt Creator
- Pre-releases
- Qt Documentation
- Contents
- Step 1: Installing the License File (Commercially Licensed Qt Only)
- Step 2: Unpacking the Archive
- Step 3: Building the Library
- Step 4: Set the Environment Variables
- Step 5: Build the Qt Documentation
- Qt Documentation
- Contents
- General Installation Information
- Windows
- macOS
- Linux/X11
- Embedded Linux
- Android
- Universal Windows Platform (UWP)
- Additional Information
- Qt Documentation
- Contents
- Supported Configurations
- Requirements for Development Host
- Debian/Ubuntu (apt-get)
- Fedora/RHEL/CentOS (yum)
- openSUSE (zypper)
- Building Qt from Source
- Deployment and Other Issues
- Where to Go from Here
Qt Documentation
Contents
Qt’s support for different Linux platforms is extensive and mature.
To download and install Qt for Linux, follow the instructions on the Getting Started with Qt page.
Supported Configurations
The following configurations are supported.
Distribution | Architecture | Compiler | Notes |
---|---|---|---|
openSUSE 15.1 | x86_64 | GCC 5 or later, GCC 7, ICC 19.1 | |
SUSE Linux Enterprise Server | x86_64 | GCC 5 or later, GCC 10 | |
Red Hat Enterprise Linux 7.6 | x86_64 | GCC 5.3.1 via devtoolset-4 | |
Ubuntu 18.04 | x86_64 | GCC 5 or later, GCC 9 | |
Generic Linux | x86 and x86_64 | GCC (5 or later), ICC 18.x |
Requirements for Development Host
The Qt installers for Linux assume that a C++ compiler, debugger, make, and other development tools are provided by the host operating system. In addition, building graphical Qt applications requires OpenGL libraries and headers installed. Most Linux distributions do not install all of these by default, but setting up a development environment is still straightforward.
Use the following commands to install the basic requirements for building Qt applications:
Debian/Ubuntu (apt-get)
Fedora/RHEL/CentOS (yum)
openSUSE (zypper)
Building Qt 5 from Source
You can also build Qt 5 from the source package and configure it according to your target platform. The source packages are obtained from http://www.qt.io/download/.
Below, you will find more information about building Qt from source.
Deployment and Other Issues
The pages below covers specific issues and recommendations for creating Linux/X11 applications.
Where to Go from Here
We invite you to explore the rest of Qt. We prepared overviews which help you decide which APIs to use and our examples demonstrate how to use our API.
- Qt Overviews — list of topics about application development
- Examples and Tutorials — code samples and tutorials
- Qt Reference Pages — a listing of C++ and QML APIs
- Qt X11 Extras — provides additional APIs for X11
Qt’s vibrant and active community site, http://qt.io houses a wiki, a forum, and additional learning guides and presentations.
В© 2021 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.
Источник
Offline Qt Downloads
We recommend you use the Qt Online Installer for first time installations and the Qt Maintenance Tool for changes to a current install.
- Qt6 source packages
- 5.15.x source packages
- 5.12.x Offline Installers
- Qt Creator
- Other downloads
- Pre-releases
Qt6 Source Packages
Qt 6.2.0 Source Packages:
The source code is available:
- For Windows users as a single zip file (1.0 G) ( Info )
- For Linux/macOS users as a tar.xz file (636 MB) ( Info )
You can get split source packages from here. Or visit the repository at code.qt.io.
Older Qt Versions
All older versions of Qt are available in the archive .
Qt 5.15.x Source Packages
The source code is available:
- For Windows users as a single zip file (962 MB) ( Info )
- For Linux/macOS users as a tar.xz file (560 MB) ( Info )
You can get split source packages from here. Or visit the repository at code.qt.io.
5.12.x Offline Installers
Qt offline installer is a stand-alone binary package including Qt libraries and Qt Creator.
Source packages & Other releases
The source code is available:
- For Windows users as a single zip file (831 MB) ( Info )
- For Linux/macOS users as a tar.xz file (486 MB) ( Info )
You can get split source packages from here. Or visit the repository at code.qt.io.
Qt Creator
Qt Creator 5.0.2 is released and it is available via Qt online installer. If you need a standalone installer, please select the file according to your operating system from the list below to get the latest Qt Creator for your computer.
The source code is available as a zip (69 MB) ( Info ) or a tar.gz (55 MB) ( Info ). Or visit the repository at code.qt.io.
Be sure to check if Qt is supported on your platform and read the installation notes that are located in the Qt Documentation .
Please check the individual downloads for licensing information.
Pre-releases
Looking for Qt 6.2.0 RC? Source packages are here.
Источник
Qt Documentation
Contents
You can download the Qt 5 sources from the Downloads page. For more information, visit the Getting Started with Qt page.
Qt for X11 has some requirements that are given in more detail in the Qt for X11 Requirements document.
Step 1: Installing the License File (Commercially Licensed Qt Only)
If you use Qt with a commercial license, the Qt tools look for a local license file. If you are using a binary installer or the commercial Qt Creator, your licenses are automatically fetched and stored in your local user profile ( $XDG_DATA_HOME/Qt/qtlicenses.ini file).
If you do not use any binary installer or Qt Creator, you can download the respective license file from your Qt Account Web portal and save it to your user profile as $HOME/.qt-license . If you prefer a different location or file name, you need to set the QT_LICENSE_FILE environment variable to the respective file path.
Step 2: Unpacking the Archive
Unpack the archive if you have not done so already. For example, if you have the qt-everywhere-opensource-src-%VERSION%.tar.gz package, type the following commands at a command line prompt:
This creates the directory /tmp/qt-everywhere-opensource-src-%VERSION% containing the files from the archive. We only support the GNU version of the tar archiving utility. Note that on some systems it is called gtar.
Step 3: Building the Library
To configure the Qt library for your machine type, run the ./configure script in the package directory.
By default, Qt is configured for installation in the /usr/local/Qt-%VERSION% directory, but this can be changed by using the -prefix option.
The Configure Options page contains more information about the configure options.
To create the library and compile all the examples, tools, and tutorials, type:
If -prefix is outside the build directory, you need to install the library, examples, tools, and tutorials in the appropriate place. To do this (as root if necessary), type:
Note that on some systems the make utility is named differently, like gmake. The configure script tells you which make utility to use.
Note: Later, if you need to reconfigure and rebuild Qt from the same location, ensure that all traces of the previous configuration are removed. To do so, from the build directory, type make confclean before running configure again.
Step 4: Set the Environment Variables
To use Qt, some environment variables need to be extended.
This is done as follows:
In .profile (if your shell is bash, ksh, zsh or sh), add the following lines:
In .login (if your shell is csh or tcsh), add the following line:
If you use a different shell, modify your environment variables accordingly.
For compilers that do not support rpath you must also extend the LD_LIBRARY_PATH environment variable to include /usr/local/Qt-%VERSION%/lib . On Linux with GCC this step is not needed.
Step 5: Build the Qt Documentation
For the Qt reference documentation to be available in Qt Assistant, you must build it separately:
В© 2021 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.
Источник
Qt Documentation
Contents
There are two ways to install Qt:
- through the Qt Installers — downloads and installs Qt
- through the Qt sources.
You can download the Qt 5 installers and sources from the Downloads page. For more information, visit the Getting Started with Qt page.
This page lists the relevant information for installing Qt by building the Qt sources. The installation procedure is different on each Qt platform. This page collects the relevant information for the supported platforms.
General Installation Information
Building Qt revolves around using configure to configure Qt for a particular platform with a particular set of Qt features or modules. For more information, visit the following page:
Windows
macOS
Linux/X11
Embedded Linux
Android
Universal Windows Platform (UWP)
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 Reference Configurations. 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.
В© 2021 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.
Источник
Qt Documentation
Contents
Qt’s support for different Linux platforms is extensive and mature.
To download and install Qt for Linux, follow the instructions on the Getting Started with Qt page.
Supported Configurations
The following configurations are supported.
Distribution | Architecture | Compiler | Notes |
---|---|---|---|
CentOS Linux 8.1 | x86_64 | GCC 9 | |
openSUSE 15.2 | x86_64 | GCC 9 | |
SUSE Linux Enterprise Server 15 SP2 | x86_64 | GCC 10 | |
Ubuntu 20.04 | x86_64 | GCC as provided by Canonical, GCC 9.x | |
Generic Linux | x86 and x86_64 | GCC 9 |
Requirements for Development Host
The Qt installers for Linux assume that a C++ compiler, debugger, make, and other development tools are provided by the host operating system. In addition, building graphical Qt applications requires OpenGL libraries and headers installed. Most Linux distributions do not install all of these by default, but setting up a development environment is still straightforward.
Use the following commands to install the basic requirements for building Qt applications:
Debian/Ubuntu (apt-get)
Fedora/RHEL/CentOS (yum)
openSUSE (zypper)
Building Qt from Source
You can also build Qt from the source package and configure it according to your target platform. The source packages are obtained from http://www.qt.io/download/.
Below, you will find more information about building Qt from source.
Deployment and Other Issues
The pages below covers specific issues and recommendations for creating Linux/X11 applications.
Where to Go from Here
We invite you to explore the rest of Qt. We prepared overviews which help you decide which APIs to use and our examples demonstrate how to use our API.
- Qt Overviews — list of topics about application development
- Examples and Tutorials — code samples and tutorials
- Qt Reference Pages — a listing of C++ and QML APIs
Qt’s vibrant and active community site, http://qt.io houses a wiki, a forum, and additional learning guides and presentations.
В© 2021 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.
Источник