Shiboken6 compile error
-
I tried compiling "WigglyWidget Example" on macos (m2),but failed.
The link is https://doc.qt.io/qtforpython-6/examples/example_widgetbinding_widgetbinding.html
The following error message is displayed:
How can i resolve it? -
Hi and welcome to devnet,
Can you tell which version of PySide6 and shiboken6 you have installed and how ?
-
I just tested the example with a fresh installation of PySide6, shiboken6 and shiboken6-generator vesion 6.7.1 and a fresh clone of https://code.qt.io/cgit/pyside/pyside-setup.git
Using the following commands
cd pyside-setup/examples/samplebinding mkdir build cd build cmake -S.. -B. -G Ninja -DCMAKE_BUILD_TYPE=Release cmake --build .
The build was successful.
-
@SGaist Thanks for your help, and I've found the problem.
There are some bugs in the CMakeLists.txt where the widgetbinding example works, and this bug has been fixed in another example, "scriptableapplication".
On the left is "scriptableapplication" and on the right is "widgetbinding".
-
I haven't checked yet but I suspect it was fixed in the sources from a later checkout than the one you have.