Building Qt Creator from Git on Fedora 38: Difference between revisions

From Qt Wiki
Jump to navigation Jump to search
(Created page with "To build Qt Creator on Ubuntu Fedora 38 follow the steps: === 1. Install build tools === $ sudo dnf groupinstall -y "C Development Tools and Libraries" $ sudo dnf install -...")
(No difference)

Revision as of 10:13, 8 August 2023

To build Qt Creator on Ubuntu Fedora 38 follow the steps:

1. Install build tools

$ sudo dnf groupinstall -y "C Development Tools and Libraries"
$ sudo dnf install -y ninja-build mesa-libGL-devel libxkbcommon-devel

2. Install the Qt 6 SDK packages

$ sudo dnf install -y qt6-qtbase-devel qt6-qtbase-private-devel qt6-qtdeclarative-devel qt6-qt5compat-devel qt6-qtdeclarative-static

5. Get Qt Creator source code

$ git clone --recursive https://code.qt.io/qt-creator/qt-creator.git 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

./qtcreator-install/bin/qtcreator

to open the

repo/CMakeLists.txt

project and load the build that we've currently made 😊