Posts by AiCaramba

    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.

    1. PKG_NAME="gobject-introspection"
    2. PKG_VERSION="1.70.0"
    3. PKG_LICENSE="GPL"
    4. PKG_SITE="https://gi.readthedocs.io/"
    5. PKG_URL="https://download.gnome.org/sources/gobject-introspection/1.70/gobject-introspection-1.70.0.tar.xz"
    6. PKG_DEPENDS_TARGET="toolchain glib Python3"
    7. PKG_PRIORITY="optional"
    8. PKG_SECTION="lib"
    9. PKG_SHORTDESC="GObject introspection middleware layer"
    10. PKG_LONGDESC="gobject-introspection is a middleware layer that allows programming languages to interface with GObject-based libraries through run>
    11. PKG_TOOLCHAIN="meson"
    12. prepare_target() {
    13. meson setup ${PKG_BUILD} ${PKG_SOURCE} \
    14. --prefix=/usr \
    15. --buildtype=release \
    16. -Dintrospection=false
    17. }
    18. build_target() {
    19. meson compile -C ${PKG_BUILD}
    20. }
    21. install_target() {
    22. DESTDIR=${INSTALL} meson install -C ${PKG_BUILD}
    23. }
    24. #include <Python.h>
    25. Compiler stdout:
    26. Compiler stderr:
    27. In file included from /mnt/pve/builder/LibreElec.tv/build.LibreElec.tv-AMLGX.arm-11.0-devel/toolchain/include/python3.11/Python.h:38,
    28. 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:
    29. /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?)."
    30. 601 | #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."