Hi, I am trying to build gobject and i keep getting the "Python.h header is not usable" error. I am using the default toolchain on a clean ubuntu 20.04.
Thanks in advance.
- PKG_NAME="gobject-introspection"
- PKG_VERSION="1.70.0"
- PKG_LICENSE="GPL"
- PKG_SITE="https://gi.readthedocs.io/"
- PKG_URL="https://download.gnome.org/sources/gobject-introspection/1.70/gobject-introspection-1.70.0.tar.xz"
- PKG_DEPENDS_TARGET="toolchain glib Python3"
- PKG_PRIORITY="optional"
- PKG_SECTION="lib"
- PKG_SHORTDESC="GObject introspection middleware layer"
- PKG_LONGDESC="gobject-introspection is a middleware layer that allows programming languages to interface with GObject-based libraries through run>
- PKG_TOOLCHAIN="meson"
- prepare_target() {
- meson setup ${PKG_BUILD} ${PKG_SOURCE} \
- --prefix=/usr \
- --buildtype=release \
- -Dintrospection=false
- }
- build_target() {
- meson compile -C ${PKG_BUILD}
- }
- install_target() {
- DESTDIR=${INSTALL} meson install -C ${PKG_BUILD}
- }
- #include <Python.h>
- Compiler stdout:
- Compiler stderr:
- In file included from /mnt/pve/builder/LibreElec.tv/build.LibreElec.tv-AMLGX.arm-11.0-devel/toolchain/include/python3.11/Python.h:38,
- from /mnt/pve/builder/LibreElec.tv/build.LibreElec.tv-AMLGX.arm-11.0-devel/build/gobject-introspection-1.70.0/.armv8a-libreelec-linux-gnueabihf/meson-private/tmpu8kxq5dp/testfile.c:2:
- /mnt/pve/builder/LibreElec.tv/build.LibreElec.tv-AMLGX.arm-11.0-devel/toolchain/include/python3.11/pyport.h:601:2: error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
- 601 | #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."