Building Qt Creator from Git on Ubuntu 22.04

From Qt Wiki
Revision as of 15:22, 7 February 2023 by Cristian Adam (talk | contribs) (Add steps to build Qt Creator on Ubuntu 22.04)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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.