aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2025-04-04 16:20:02 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2025-04-04 16:20:02 +0200
commitd19f0b7aab67306c158c4cee3175d72242296489 (patch)
treee150c0a830bafe71bf99d16e1183d66b25f3ef95
parent3dc1d598a056efc25b168e30c6692f76989f7f30 (diff)
downloadminimal-qt-master.tar.gz
minimal-qt-master.zip
Minor fixesHEADmaster
-rw-r--r--README.md14
1 files changed, 7 insertions, 7 deletions
diff --git a/README.md b/README.md
index 4da6a09..f288cd2 100644
--- a/README.md
+++ b/README.md
@@ -9,8 +9,8 @@ without using CMake or QT Creator.
9* QT libraries and headers 9* QT libraries and headers
10* The QT development tools `moc` and `uic` 10* The QT development tools `moc` and `uic`
11 11
12On Fedora Linux they are contained in the `qt6-qtbase-devel`. I have 12On Fedora Linux they are contained in the `qt6-qtbase-devel` package.
13not tested this on other operating systems. 13I have not tested this on other operating systems.
14 14
15## tl;dr 15## tl;dr
16 16
@@ -38,8 +38,8 @@ The compilation is done in 3 steps:
38The `Makefile` implements these three steps. 38The `Makefile` implements these three steps.
39 39
40The first two steps are straightforward: first you need to locate the 40The first two steps are straightforward: first you need to locate the
41`moc` and `uic` command - they are usually in the QT installation 41`moc` and `uic` commands. They are usually in the QT installation
42folder. For example I have them in `/usr/lib64/qt/libexec`. Then run: 42folder - for example I have them in `/usr/lib64/qt/libexec`. Then run:
43 43
44``` 44```
45/usr/lib64/qt/libexec/moc mainwindow.h > moc_mainwindow.cpp 45/usr/lib64/qt/libexec/moc mainwindow.h > moc_mainwindow.cpp
@@ -53,11 +53,11 @@ For the last step, one needs to include the header files and link with
53the QT libraries. 53the QT libraries.
54 54
55On my system the header files are in `/usr/include/qt6`. This means I 55On my system the header files are in `/usr/include/qt6`. This means I
56need to add the option `-I /usr/include/qt6` to my `gcc` command. This 56need to add the option `-I /usr/include/qt6` to my `g++` command. This
57simple project also requires headers contained in a subfolder of this, 57project also requires headers contained in a subfolder of this,
58so I will add a second `-I` option (see the full command below). 58so I will add a second `-I` option (see the full command below).
59 59
60As for the system libraries, in my case they are installed in a system 60As for the shared libraries, in my case they are installed in a system
61folder that is scanned by default by the linker, so I don't have to 61folder that is scanned by default by the linker, so I don't have to
62specify the path. We need the files `libQt6Widgets.so`, `libQt6Core.so` 62specify the path. We need the files `libQt6Widgets.so`, `libQt6Core.so`
63and `libQt6Gui.so`, which we can include with 63and `libQt6Gui.so`, which we can include with

Generated with cgit - Back to sebastiano.tronto.net