Qt 對不同 Linux 平颱的支持是廣泛且成熟的。
要下載並安裝 Qt for Linux,遵循的操作指南在 Qt 快速入門 頁麵。
支持下列配置。
| 分發 | 體係結構 | 編譯器 | 注意事項 |
|---|---|---|---|
| Red Hat 8.6 |
x86_64
|
GCC 10 (toolset) | |
| Red Hat 8.8 |
x86_64
|
GCC 10 (toolset) | |
| Red Hat 8.10 |
x86_64
|
GCC 10 (toolset) | |
| Red Hat 9.2 |
x86_64
|
GCC 11 | |
| Red Hat 9.4 |
x86_64
|
GCC 11 | |
| openSUSE 15.5 |
x86_64
|
GCC 9 | |
| SUSE Linux Enterprise Server 15 SP5 |
x86_64
|
GCC 10 | |
| Ubuntu 22.04 |
x86_64
|
由 Canonical 提供的 GCC,GCC 11.x | |
| Ubuntu 24.04 |
x86_64, arm64
|
由 Canonical 提供的 GCC,GCC 13.x | 見 note . |
| Debian 11.6 |
x86_64, arm64
|
GCC 10 |
技術預覽
另請參閱: Enterprise Qt Debian Packages . |
注意: For Linux on Arm on desktops, we use Raspberry Pi 5 with 8GB RAM and Ubuntu 24.04 as a reference platform. If you have an issue with another hardware, please try to reproduce the issue on Raspberry Pi 5. We plan to move to regular platform support when a wider range of ARM-based desktop hardware becomes available. The official binaries are built on Ubuntu 24.04 which ships with glibc 2.39, if your glibc is older than what we build with, you need to rebuild from sources.
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 Qt for X11 要求 , and 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:
sudo apt-get install build-essential libgl1-mesa-dev
sudo yum groupinstall "C Development Tools and Libraries" sudo yum install mesa-libGL-devel
sudo zypper install -t pattern devel_basis
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.
以下頁麵涵蓋創建 Linux/X11 應用程序的特定問題和推薦。
我們邀您探索 Qt 的其餘部分。我們準備的概述幫助您決定要使用哪些 API,示例演示如何使用 API。
Qt 振奮且活躍的社區站點, http://qt.io 包含 Wiki、論壇及其它學習指南和演示文稿。