diff options
| -rw-r--r-- | README.md | 10 |
1 files changed, 5 insertions, 5 deletions
| @@ -17,7 +17,7 @@ not tested this on other operating systems. | |||
| 17 | If you just want to try out this program you can run (if you have `make` installed) | 17 | If you just want to try out this program you can run (if you have `make` installed) |
| 18 | 18 | ||
| 19 | ``` | 19 | ``` |
| 20 | $ make && ./run | 20 | make && ./run |
| 21 | ``` | 21 | ``` |
| 22 | 22 | ||
| 23 | ## Explanation | 23 | ## Explanation |
| @@ -42,8 +42,8 @@ The first two steps are straightforward: first you need to locate the | |||
| 42 | folder. For example I have them in `/usr/lib64/qt/libexec`. Then run: | 42 | folder. 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 |
| 46 | $ /usr/lib64/qt/libexex/uic mainwindow.ui > ui_mainwindow.h | 46 | /usr/lib64/qt/libexex/uic mainwindow.ui > ui_mainwindow.h |
| 47 | ``` | 47 | ``` |
| 48 | 48 | ||
| 49 | These steps can be skipped if one prefers to write the `moc_` and `ui_` | 49 | These steps can be skipped if one prefers to write the `moc_` and `ui_` |
| @@ -67,7 +67,7 @@ locate them and include their folder with `-L /path/to/the/folder`. | |||
| 67 | So the command for step 3 becomes: | 67 | So the command for step 3 becomes: |
| 68 | 68 | ||
| 69 | ``` | 69 | ``` |
| 70 | $ g++ main.cpp mainwindow.cpp moc_mainwindow.cpp \ | 70 | g++ main.cpp mainwindow.cpp moc_mainwindow.cpp \ |
| 71 | -I /usr/include/qt6 -I /usr/include/qt6/QtWidgets \ | 71 | -I /usr/include/qt6 -I /usr/include/qt6/QtWidgets \ |
| 72 | -lQt6Widgets -lQt6Core -lQt6Gui | 72 | -lQt6Widgets -lQt6Core -lQt6Gui |
| 73 | -o run | 73 | -o run |
| @@ -76,5 +76,5 @@ $ g++ main.cpp mainwindow.cpp moc_mainwindow.cpp \ | |||
| 76 | And finally you can enjoy your new app: | 76 | And finally you can enjoy your new app: |
| 77 | 77 | ||
| 78 | ``` | 78 | ``` |
| 79 | $ ./run | 79 | ./run |
| 80 | ``` | 80 | ``` |
