xkbcommon failing to build

Hi, im trying to build pywlroots for Qtile with Wayland and doing it from source as ports does not have this.
One of requirements pywlroots ( Python binding to the wlroots library using cffi ) but im getting errors while installing xkbcommon ( need higher version than in ports )
Code:
➜  python-xkbcommon git:(master) sudo python setup.py install
running install
/usr/local/lib/python3.11/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
/usr/local/lib/python3.11/site-packages/setuptools/command/easy_install.py:144: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
running bdist_egg
running egg_info
creating xkbcommon.egg-info
writing xkbcommon.egg-info/PKG-INFO
writing dependency_links to xkbcommon.egg-info/dependency_links.txt
writing requirements to xkbcommon.egg-info/requires.txt
writing top-level names to xkbcommon.egg-info/top_level.txt
writing manifest file 'xkbcommon.egg-info/SOURCES.txt'
reading manifest file 'xkbcommon.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE'
writing manifest file 'xkbcommon.egg-info/SOURCES.txt'
installing library code to build/bdist.freebsd-14.2-STABLE-amd64/egg
running install_lib
running build_py
creating build
creating build/lib.freebsd-14.2-STABLE-amd64-cpython-311
creating build/lib.freebsd-14.2-STABLE-amd64-cpython-311/xkbcommon
copying xkbcommon/xkb.py -> build/lib.freebsd-14.2-STABLE-amd64-cpython-311/xkbcommon
copying xkbcommon/ffi_build.py -> build/lib.freebsd-14.2-STABLE-amd64-cpython-311/xkbcommon
copying xkbcommon/__init__.py -> build/lib.freebsd-14.2-STABLE-amd64-cpython-311/xkbcommon
running build_ext
generating cffi module 'build/temp.freebsd-14.2-STABLE-amd64-cpython-311/xkbcommon._ffi.c'
creating build/temp.freebsd-14.2-STABLE-amd64-cpython-311
building 'xkbcommon._ffi' extension
creating build/temp.freebsd-14.2-STABLE-amd64-cpython-311/build
creating build/temp.freebsd-14.2-STABLE-amd64-cpython-311/build/temp.freebsd-14.2-STABLE-amd64-cpython-311
cc -pthread -Wsign-compare -Wunreachable-code -DNDEBUG -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -fPIC -I/usr/local/include/python3.11 -c build/temp.freebsd-14.2-STABLE-amd64-cpython-311/xkbcommon._ffi.c -o build/temp.freebsd-14.2-STABLE-amd64-cpython-311/build/temp.freebsd-14.2-STABLE-amd64-cpython-311/xkbcommon._ffi.o
build/temp.freebsd-14.2-STABLE-amd64-cpython-311/xkbcommon._ffi.c:575:10: fatal error: 'xkbcommon/xkbcommon.h' file not found
  575 | #include <xkbcommon/xkbcommon.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
error: command '/usr/bin/cc' failed with exit code 1

How can i get it done ?
 
Back
Top