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

6.6.0 FTBFS (CMake build/unsupported)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • 6.6.0
    • Build System
    • None
    • Linux/X11

    Description

      Build of 6.6.0 fails because the Python.h header can't be found

      FAILED: sources/pyside6/qtexampleicons/CMakeFiles/QtExampleIcons.dir/module.c.o 
      /usr/bin/cc -DQT_CORE_LIB -DQT_EXAMPLE_ICONS_LIB -DQT_NO_DEBUG -DQtExampleIcons_EXPORTS -I/build/pyside6/src/build/sources/pyside6/qtexampleicons -I/build/pyside6/src/pyside-setup-everywhere-src-6.6/sources/pyside6/qtexampleicons -I/build/pyside6/src/build/sources/pyside6/qtexampleicons/QtExampleIcons_autogen/include -isystem /usr/include/qt6/QtExampleIcons -isystem /usr/include/qt6 -isystem /usr/include/qt6/QtCore -isystem /usr/lib/qt6/mkspecs/linux-g++ -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/pyside6/src=/usr/src/debug/pyside6 -flto=auto -fPIC   -fPIC -mno-direct-extern-access -MD -MT sources/pyside6/qtexampleicons/CMakeFiles/QtExampleIcons.dir/module.c.o -MF sources/pyside6/qtexampleicons/CMakeFiles/QtExampleIcons.dir/module.c.o.d -o sources/pyside6/qtexampleicons/CMakeFiles/QtExampleIcons.dir/module.c.o -c /build/pyside6/src/pyside-setup-everywhere-src-6.6/sources/pyside6/qtexampleicons/module.c
      /build/pyside6/src/pyside-setup-everywhere-src-6.6/sources/pyside6/qtexampleicons/module.c:4:10: fatal error: Python.h: No such file or directory
          4 | #include <Python.h>
            |          ^~~~~~~~~~
      compilation terminated.
      

      Reason is that SHIBOKEN_PYTHON_INCLUDE_DIRS is undefined in https://code.qt.io/cgit/pyside/pyside-setup.git/tree/sources/pyside6/qtexampleicons/CMakeLists.txt

      The lines

      get_property(SHIBOKEN_PYTHON_LIBRARIES GLOBAL PROPERTY shiboken_python_libraries)
      get_property(SHIBOKEN_PYTHON_INCLUDE_DIRS GLOBAL PROPERTY shiboken_python_include_dirs)
      

      need to be added above.

      Attachments

        1. fix-build.patch
          0.7 kB
        2. pyside2491.diff
          0.7 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            crmaurei Cristian Maureira-Fredes
            arojas Antonio Rojas
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes