Qt wiki will be updated on October 12th 2023 starting at 11:30 AM (EEST) and the maintenance will last around 2-3 hours. During the maintenance the site will be unavailable.
Building Qt Creator from Git on Fedora 38: Difference between revisions
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 -...") |
m (Add llvm-devel dependency) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
To build Qt Creator on | To build Qt Creator on Fedora 38 follow the steps: | ||
=== 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=== | ||
$ sudo dnf install -y qt6-qtbase-devel qt6-qtbase-private-devel qt6-qtdeclarative-devel qt6-qt5compat-devel qt6-qtdeclarative-static | $ 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 === | ===5. Get Qt Creator source code=== | ||
$ git clone --recursive <nowiki>https://code.qt.io/qt-creator/qt-creator.git</nowiki> repo | $ git clone --recursive <nowiki>https://code.qt.io/qt-creator/qt-creator.git</nowiki> repo | ||
=== 6. Build Qt Creator === | ===6. Build Qt Creator=== | ||
$ cmake -G Ninja -S repo -B build -D CMAKE_BUILD_TYPE=Release | $ cmake -G Ninja -S repo -B build -D CMAKE_BUILD_TYPE=Release | ||
$ cmake --build build | $ cmake --build build |
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 😊