Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-2648

Both sample/widget bindings examples fail in CMake on configure

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • 6.6.2
    • PySide, Shiboken
    • None
    • Archlinux, Qt 6.6.2, CMake 3.28.3
    • Linux/X11
    • 6785dc5fb (dev), f1e89d34f (6.7), e3f09ad2c (6.6), bd231cc05 (dev), 654c36f4e (6.7)

    Description

      When loading one of the mentioned examples I get immediatly an error:
      ```
      [cmake] CMake Error at CMakeLists.txt:90 (message):
      [cmake] Error: Calling pyside_config.py --shiboken-module-shared-libraries-cmake
      [cmake] returned no output.
      [cmake] Call Stack (most recent call first):
      [cmake] CMakeLists.txt:104 (pyside_config)
      ```
      so I tried to debug by adding a `print("==> " + package)` on utils/pyside_config.py
      at line 194 (find_package_path(dir_name), before `if os.path.exists(package):`
      and re run CMake:

      ```
      [cmake] CMake Error at CMakeLists.txt:110 (message):
      [cmake] Shiboken executable not found at path: ==>
      [cmake] /home/redtide/.local/lib/python3.11/site-packages/shiboken6_generator
      [cmake]
      [cmake] ==> /usr/lib/python3.11/site-packages/shiboken6_generator
      [cmake]
      [cmake] /usr/lib/python3.11/site-packages/shiboken6_generator/shiboken6
      ```
      if it is searching for the Shiboken executable, shiboken6 in Archlinux is in /usr/bin, see https://archlinux.org/packages/extra/x86_64/shiboken6/files/

      EDIT: I made it somewhat working but there must be something broken in that pyside_config.py, because it didn't "work" until I added some print()s, I wonder if it has to do with the CMake version.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            crmaurei Cristian Maureira-Fredes
            redtide Red Tide
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: