mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-30 23:27:22 +00:00
Fix tutorial C++ instructions for starting the memory game on Windows
This commit is contained in:
parent
727b3e30e2
commit
ea0e02f468
1 changed files with 18 additions and 1 deletions
|
@ -49,16 +49,33 @@ What's still missing is the `main.cpp`:
|
|||
|
||||
To recap, we now have a directory with a `CMakeLists.txt`, `memory.slint` and `main.cpp`.
|
||||
|
||||
We can now compile and run this program:
|
||||
We can now compile the program in a terminal:
|
||||
|
||||
```sh
|
||||
cmake -GNinja .
|
||||
cmake --build .
|
||||
```
|
||||
|
||||
If you are on Linux or macOS, you can run the program:
|
||||
|
||||
```sh
|
||||
./memory_game
|
||||
```
|
||||
|
||||
and a window will appear with the green "Hello World" greeting.
|
||||
|
||||
If you are stepping through this tutorial on a Windows machine, you need to add the `bin` sub-directory into your `%PATH%`:
|
||||
|
||||
```sh
|
||||
set PATH=%CD%\bin;%PATH%
|
||||
```
|
||||
|
||||
so that Windows to can find the Slint run-time library. Then you can run it with
|
||||
|
||||
```sh
|
||||
memory_game
|
||||
```
|
||||
|
||||

|
||||
|
||||
Feel free to use your favorite IDE for this purpose, or use out-of-tree build, or Ninja, ...
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue