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 9.2 |
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 | |
Debian 11.6 on ARM |
arm64
|
GCC 10 | 技术预览 |
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、论坛及其它学习指南和演示文稿。