Qt for X11 Requirements
On Linux, the xcb QPA (Qt Platform Abstraction) platform plugin is used. It provides the basic functionality needed by Qt GUI and Qt Widgets to run against X11. Its library dependencies are described the following table. To build Qt from its source code, you will also need to install the development packages for these libraries for your system.
Note: From Qt 5.15 onwards, Qt does require libxcb 1.11. Also, the
-qt-xcb configure option got removed that was bundling some of the libs below. Anyhow, you can now configure with
-bundled-xcb-xinput to avoid a dependency to system xcb-xinput.
|Minimum working version
|X Rendering Extension; used for anti-aliasing and alpha cursor support
-xrender or auto-detected
|X C Bindings for Render extension
|Utility library for XCB for Render extension
|X C Bindings for Shape extension
|X C Bindings for Resize and Rotate Extension
|X C Bindings for Fixes Extension
|X C Bindings for Sync Extension
|X C Bindings for Shared Memory Extension
|X C Bindings for ICCCM Protocol
|Utility library for XCB for keycode conversion
|Utility library for XCB for XImage and XShmImage, used for QBackingStore and cursor support
-xkbcommon or auto-detected
|Font customization and configuration
-fontconfig or auto-detected
|X11 client-side library
|X C Binding library
|Xlib/XCB interface library
|X Session Management
-sm or auto-detected
-sm or auto-detected
|Common event loop handling
-glib or auto-detected
Development packages for these libraries contain header files that are used when building Qt from its source code. On Debian-based GNU/Linux systems, for example, we recommend that you install the following development packages:
Some of these packages depend on others in this list, so installing one may cause others to be automatically installed. Other distributions may provide system packages with similar names.
The Qt accessibility implementation uses the Assistive Technology Service Provider Interface (AT-SPI). Besides DBUS, the development package
libatspi2.0-dev must be installed.
Configure attempts to automatically detect OpenGL ES 2.0, or later, or regular desktop OpenGL. You can disable OpenGL support by using the
Note: The Qt OpenGL module (which contains classes that start with QGL) has been deprecated in favor of the Qt GUI module (which contains classes that start with QOpenGL).
As described in the Multimedia overview, Qt Multimedia uses the GStreamer multimedia framework as the backend for audio and video playback on Linux. The minimum required version of GStreamer is 0.10.24. The 1.x series is also supported.
To build Qt Multimedia, you need the GStreamer library, base plugins, and development files for your system. To run applications that use Qt Multimedia, you might also need to install the following GStreamer plugins: 'good', 'ugly', 'bad', ffmpeg (0.10), and libav (1.x). These additional plugins contain various codecs for audio and video decoding, as well as the necessary components for using the camera APIs. The package names for GStreamer vary between Linux distributions; try searching for
libgstreamer in your distribution's package repository to find suitable packages.
Qt Speech depends on Speech Dispatcher (libspeechd) on the Linux platform. The following development packages should be installed:
© 2023 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.