Building Qt Creator from Git on Ubuntu 22.04

From Qt Wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

To build Qt Creator on Ubuntu 22.04 follow the steps:

1. Install build tools

$ sudo apt install build-essential cmake ninja-build git

2. Install all the Ubuntu Qt 6  SDK packages

$ sudo apt install qt6-base-dev qt6-base-private-dev qt6-declarative-dev qt6-declarative-private-dev qt6-tools-dev qt6-tools-private-dev qt6-scxml-dev qt6-documentation-tools libqt6core5compat6-dev qt6-tools-dev-tools qt6-l10n-tools qt6-shader-baker libqt6shadertools6-dev qt6-quick3d-dev qt6-quick3d-dev-tools libqt6svg6-dev libqt6quicktimeline6-dev libqt6serialport6-dev

3. Install LLVM / Clang dependencies

$ sudo apt install clang-15 clangd-15 libclang-15-dev

4. Install Qt Creator dependencies

$ sudo apt install libgl1-mesa-dev libvulkan-dev libxcb-xinput-dev libxcb-xinerama0-dev libxkbcommon-dev libxkbcommon-x11-dev libxcb-image0 libxcb-keysyms1 libxcb-render-util0 libxcb-xkb1 libxcb-randr0 libxcb-icccm4

5. Get Qt Creator source code

$ git clone --recursive repo

6. Build Qt Creator

$ cmake -G Ninja -S repo -B build -D CMAKE_BUILD_TYPE=Release
$ cmake --build build
$ cmake --install build/ --prefix qtcreator-install

Now we've got a full build of Qt Creator! 🎉

We can start


to open the


project and load the build that we've currently made 😊 If the CMake configure process is complaining about something, just use

apt-file search <file>

to locate the package that needs to be installed.