Details
-
Bug
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
6.6.0
-
None
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.