在 Linux, xcb 使用 QPA (Qt 平颱抽象) 平颱插件。它提供所需基本功能通過 Qt GUI and Qt Widgets 以運行針對 X11。下錶描述其庫的依賴。要從其源代碼構建 Qt,還需要為係統安裝這些庫的開發包。
| 名稱 | 庫 | 注意事項 | 配置選項 | 最低工作版本 |
|---|---|---|---|---|
| XRender | libXrender | X 渲染擴展;用於抗鋸齒和 Alpha 光標支持 |
-xrender
或自動檢測
|
0.9.0 |
| xcb-render | libxcb-render | 用於渲染擴展的 X C 綁定 | 自動檢測 | 1.11 |
| xcb-render-util | libxcb-render-util | 用渲染擴展的 XCB 實用程序庫 | 自動檢測 | 0.3.9 |
| xcb-shape | libxcb-shape | 同步形狀擴展的 X C 綁定 | 自動檢測 | 1.11 |
| xcb-randr | libxcb-randr | 用於重置尺寸和鏇轉擴展的 X C 綁定 | 自動檢測 | 1.11 |
| xcb-xfixes | libxcb-xfixes | 用於修復擴展的 X C 綁定 | 自動檢測 | 1.11 |
| xcb-xkb | libxcb-xkb | X C Bindings for XKeyboard Extension | 自動檢測 | 1.11 |
| xcb-sync | libxcb-sync | 用於同步擴展的 X C 綁定 | 自動檢測 | 1.11 |
| xcb-shm | libxcb-shm | 用於共享內存擴展的 X C 綁定 | 自動檢測 | 1.11 |
| xcb-icccm | libxcb-icccm | 用於 ICCCM 協議的 X C 綁定 | 自動檢測 | 0.3.9 |
| xcb-keysyms | libxcb-keysyms | 用於鍵碼轉換的 XCB 實用程序庫 | 自動檢測 | 0.3.9 |
| xcb-image | libxcb-image | 用於 XImage 和 XShmImage 的 XCB 實用程序庫,用於 QBackingStore 和光標支持 | 自動檢測 | 0.3.9 |
| xcb-util | libxcb-util | Utility library for XCB for atom, aux and event | 自動檢測 | 0.3.9 |
| xcb-cursor0 | libxcb-cursor0 | Utility library for XCB for cursor | 自動檢測 | 0.1.1 |
| xkbcommon | libxkbcommon | 鍵映射處理 |
-xkbcommon
或自動檢測
|
0.5.0 |
| xkbcommon-x11 | libxkbcommon-x11 | 鍵映射處理 | 自動檢測 | 0.5.0 |
| Fontconfig | libfontconfig | 字體定製和配置 |
-fontconfig
或自動檢測
|
2.6 |
| FreeType | libfreetype | 字體引擎 | 2.3.0 | |
| Xext | libXext | X 擴展 | 6.4.3 | |
| X11 | libX11 | X11 客戶端側庫 | 6.2.1 | |
| xcb | libxcb | X C 綁定庫 | 1.11 | |
| X11-xcb | libX11-xcb | Xlib/XCB 接口庫 | 1.3.2 | |
| SM | libSM | X 會話管理 |
-sm
或自動檢測
|
6.0.4 |
| ICE | libICE | ICE (客戶端間交換) |
-sm
或自動檢測
|
6.3.5 |
| glib | libglib-2.0 | 常見事件循環處理 |
-glib
或自動檢測
|
2.8.3 |
| pthread | libpthread | 多綫程 | 2.3.5 |
Development packages for the above libraries contain header files that are used when building Qt from its source code. The package names may differ among Linux distributions, and some distributions may not include all packages in the default configuration for their package management system.
As an example, you can run the following command to install the recommended packages on Debian-based GNU/Linux systems:
apt install \
libfontconfig1-dev \
libfreetype-dev \
libgtk-3-dev \
libx11-dev \
libx11-xcb-dev \
libxcb-cursor-dev \
libxcb-glx0-dev \
libxcb-icccm4-dev \
libxcb-image0-dev \
libxcb-keysyms1-dev \
libxcb-randr0-dev \
libxcb-render-util0-dev \
libxcb-shape0-dev \
libxcb-shm0-dev \
libxcb-sync-dev \
libxcb-util-dev \
libxcb-xfixes0-dev \
libxcb-xkb-dev \
libxcb1-dev \
libxext-dev \
libxfixes-dev \
libxi-dev \
libxkbcommon-dev \
libxkbcommon-x11-dev \
libxrender-dev
這些包中的某些依賴此列錶中的其它,因此安裝一個可能導緻其它被自動安裝。其它分布可能為係統包提供類似名稱。
Qt does not maintain a comprehensive package list for all distributions. Some distributions, such as Red Hat and its derivatives, may require additional repositories for certain packages (e.g., EPEL for RHEL). Consult your distribution's documentation for specific package names. RHEL users can contact Red Hat support for detailed information.
Qt 可訪問性實現使用
輔助技術服務提供商接口
(AT-SPI)。除 DBUS 外,開發包
libatspi2.0-dev
必須安裝。
配置試圖自動檢測 OpenGL ES 2.0 或更高版本或常規桌麵 OpenGL。可以禁用 OpenGL 支持通過使用
-no-opengl
選項。
注意: Qt OpenGL 模塊 (包含類開頭采用 QGL ) 棄用代之 Qt GUI 模塊 (包含類開頭采用 QOpenGL ).
QDoc uses Clang to parse C++ code. If you wish to build QDoc manually, refer to 為 QDoc 安裝 Clang 對於特定構建要求。