Hello.
I'm trying to compile libfreenect because I want to use my kinect xbox 360 on Debian 11. I'm following the tutorial that I've found here :
https://github.com/OpenKinect/libfreenect
here :
https://itsourcecode.com/modulenotfounderror/no-module-named-numpy-core-_multiarray_umath-solved/
here :
https://github.com/lava/matplotlib-cpp/issues/46
this is what I did :
# python3 --version Python 3.8.10 # /usr/bin/python3 --version Python 3.8.10 marietto@marietto:/mnt/zroot2/zroot2/libfreenect/build# sudo cmake .. -L -DBUILD_PYTHON3=ON -DPython3_EXACTVERSION=3.8.10 -DCYTHON_EXECUTABLE=/usr/bin/cython3 -DBUILD_REDIST_PACKAGE=OFF -DPYTHON_INCLUDE_DIR=/usr/local/lib/python3.8/dist-packages/numpy/core/include -- Operating system is Linux -- Got System Processor x86_64 -- Linux x86_64 Detected -- libfreenect will be installed to /usr/local -- Headers will be installed to /usr/local/include/libfreenect -- Libraries will be installed to /usr/local/lib -- Found libusb-1.0: -- - Includes: /usr/include/libusb-1.0 -- - Libraries: /usr/lib/x86_64-linux-gnu/libusb-1.0.so Traceback (most recent call last): File "/usr/local/lib/python3.8/numpy/core/__init__.py", line 23, in <module> from . import multiarray File "/usr/local/lib/python3.8/numpy/core/multiarray.py", line 10, in <module> from . import overrides File "/usr/local/lib/python3.8/numpy/core/overrides.py", line 6, in <module> from numpy.core._multiarray_umath import ( ModuleNotFoundError: No module named 'numpy.core._multiarray_umath' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "<string>", line 1, in <module> File "/usr/local/lib/python3.8/numpy/__init__.py", line 141, in <module> from . import core File "/usr/local/lib/python3.8/numpy/core/__init__.py", line 49, in <module> raise ImportError(msg) ImportError: IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! Importing the numpy C-extensions failed. This error can happen for many reasons, often due to issues with your setup or how NumPy was installed. We have compiled some common reasons and troubleshooting tips at: https://numpy.org/devdocs/user/troubleshooting-importerror.html Please note and check the following: * The Python version is: Python3.8 from "/usr/local/bin/python3.8" * The NumPy version is: "1.24.2" and make sure that they are the versions you expect. Please carefully study the documentation linked above for further help. Original error was: No module named 'numpy.core._multiarray_umath' -- Configuring done (0.6s) -- Generating done (0.0s) CMake Warning: Manually-specified variables were not used by the project: PYTHON_INCLUDE_DIR -- Build files have been written to: /mnt/zroot2/zroot2/libfreenect/build -- Cache values BUILD_AS3_SERVER:BOOL=OFF BUILD_CPACK_DEB:BOOL=OFF BUILD_CPACK_RPM:BOOL=OFF BUILD_CPACK_TGZ:BOOL=OFF BUILD_CPP:BOOL=ON BUILD_CV:BOOL=OFF BUILD_C_SYNC:BOOL=ON BUILD_EXAMPLES:BOOL=ON BUILD_FAKENECT:BOOL=ON BUILD_OPENNI2_DRIVER:BOOL=OFF BUILD_PYTHON:BOOL=OFF BUILD_PYTHON2:BOOL=OFF BUILD_PYTHON3:BOOL=ON BUILD_REDIST_PACKAGE:BOOL=OFF CMAKE_BUILD_TYPE:STRING= CMAKE_INSTALL_PREFIX:PATH=/usr/local CYTHON_EXECUTABLE:FILEPATH=/usr/bin/cython3 LIBUSB_1_INCLUDE_DIR:PATH=/usr/include/libusb-1.0 LIBUSB_1_LIBRARY:FILEPATH=/usr/lib/x86_64-linux-gnu/libusb-1.0.so Python2_EXACTVERSION:STRING= Python3_EXACTVERSION:STRING=3.8.10 marietto@marietto:/mnt/zroot2/zroot2/libfreenect/build# sudo make Already have audios.bin [ 0%] Built target firmware [ 16%] Built target freenect [ 32%] Built target freenectstatic [ 35%] Built target freenect-camtest [ 39%] Built target freenect-wavrecord [ 42%] Built target freenect-glview [ 46%] Built target freenect-regview [ 50%] Built target freenect-hiview [ 53%] Built target freenect-chunkview [ 57%] Built target freenect-micview [ 60%] Built target freenect_sync [ 64%] Built target freenect-regtest [ 67%] Built target freenect-tiltdemo [ 71%] Built target freenect-glpclview [ 78%] Built target fakenect [ 83%] Built target fakenect-record [ 87%] Built target freenect_sync_static [ 91%] Built target freenect-cppview [ 94%] Built target freenect-cpp_pcview [ 96%] Building C object wrappers/python/CMakeFiles/cython3_freenect.dir/freenect3.c.o /mnt/zroot2/zroot2/libfreenect/build/wrappers/python/freenect3.c:747:10: fatal error: numpy/arrayobject.h: File o directory non esistente 747 | #include "numpy/arrayobject.h" | ^~~~~~~~~~~~~~~~~~~~~ compilation terminated. make[2]: *** [wrappers/python/CMakeFiles/cython3_freenect.dir/build.make:80: wrappers/python/CMakeFiles/cython3_freenect.dir/freenect3.c.o] Errore 1 make[1]: *** [CMakeFiles/Makefile2:741: wrappers/python/CMakeFiles/cython3_freenect.dir/all] Errore 2 make: *** [Makefile:136: all] Errore 2--