aboutsummaryrefslogtreecommitdiffstats
path: root/examples/samplebinding
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2021-02-23 17:39:50 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2021-02-23 17:08:00 +0000
commit28f76593fa6177a3a97fd308f0404529a7337169 (patch)
tree18228f879dadb603c0c1d7a872dc3dc57939e911 /examples/samplebinding
parent346daaa093a3939de17ffcb5d6a2761c5fc2e0f2 (diff)
Update and unify README.md of our binding examples
ninja is the only working generator for Qt 6. Pick-to: 6.0 Change-Id: I9640f646ffea7b21659966680df52a21ead7119d Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'examples/samplebinding')
-rw-r--r--examples/samplebinding/README.md29
1 files changed, 16 insertions, 13 deletions
diff --git a/examples/samplebinding/README.md b/examples/samplebinding/README.md
index 1334600ab..7cd032ffc 100644
--- a/examples/samplebinding/README.md
+++ b/examples/samplebinding/README.md
@@ -130,6 +130,7 @@ The following requirements need to be met:
* A PySide package is installed into the current active Python
environment (system or virtualenv)
* A new enough version of CMake (**3.1+**).
+* ninja
For Windows you will also need:
* a Visual Studio environment to be active in your terminal
@@ -146,28 +147,30 @@ using the current PySide/Shiboken installation.
You can build and run this example by executing the following commands
(slightly adapted to your file system layout) in a terminal:
-On macOS/Linux:
+macOS/Linux:
```bash
cd ~/pyside-setup/examples/samplebinding
-mkdir build
-cd build
-cmake -H.. -B. -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release
-make
-make install
-python ../main.py
```
On Windows:
```bash
cd C:\pyside-setup\examples\samplebinding
+```
+
+```bash
mkdir build
cd build
-cmake -H.. -B. -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release
-# or if you have jom available
-# cmake -H.. -B. -G "NMake Makefiles JOM" -DCMAKE_BUILD_TYPE=Release
-nmake # or jom
-nmake install # or jom install
-python ..\main.py
+mkdir build
+cd build
+cmake -H.. -B. -G Ninja -DCMAKE_BUILD_TYPE=Release
+ninja
+ninja install
+cd ..
+```
+
+The final example can then be run by:
+```bash
+python main.py
```
#### Windows troubleshooting