Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. Shiboken6 compile error
QtWS25 Last Chance

Shiboken6 compile error

Scheduled Pinned Locked Moved Unsolved Qt for Python
7 Posts 2 Posters 555 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jokers
    wrote on last edited by
    #1

    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:
    8e04c1f1-823f-4c2b-a499-8b650bb493e7-image.png
    How can i resolve it?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Can you tell which version of PySide6 and shiboken6 you have installed and how ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      J 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi and welcome to devnet,

        Can you tell which version of PySide6 and shiboken6 you have installed and how ?

        J Offline
        J Offline
        Jokers
        wrote on last edited by
        #3

        @SGaist both 6.7.1

        1 Reply Last reply
        0
        • J Offline
          J Offline
          Jokers
          wrote on last edited by
          #4

          and download from offical pip source

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            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.

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            J 1 Reply Last reply
            0
            • SGaistS SGaist

              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.

              J Offline
              J Offline
              Jokers
              wrote on last edited by
              #6

              @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".
              39570a46-f8a0-445f-a98a-bc0c3bca6bb0-image.png

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #7

                I haven't checked yet but I suspect it was fixed in the sources from a later checkout than the one you have.

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                0

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved