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

From Qt Wiki
Jump to navigation Jump to search
mNo edit summary
m (Add llvm-devel dependency)
 
Line 3: Line 3:
===1. Install build tools===
===1. Install build tools===
  $ sudo dnf groupinstall -y "C Development Tools and Libraries"
  $ sudo dnf groupinstall -y "C Development Tools and Libraries"
  $ sudo dnf install -y ninja-build mesa-libGL-devel libxkbcommon-devel
  $ sudo dnf install -y ninja-build mesa-libGL-devel libxkbcommon-devel llvm-devel


===2. Install the Qt 6 SDK packages===
===2. Install the Qt 6 SDK packages===

Latest revision as of 20:19, 30 August 2023

To build Qt Creator on 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 llvm-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 😊