gpt4 book ai didi

python - WSL Ubuntu - 制作 libfreenect - CYTHON_EXECUTABLE-NOTFOUND

转载 作者:行者123 更新时间:2023-12-04 18:42:52 26 4
gpt4 key购买 nike

我正在尝试构建 libfreenect在 Ubuntu 中的 WSL 中。我目前面临这一行确定的问题:

/bin/sh: 1: CYTHON_EXECUTABLE-NOTFOUND: not found
在此日志的末尾:
endeavour@DZHPwindows:~/libfreenect/build$ make
[ 16%] Built target freenectstatic
[ 32%] Built target freenect
[ 35%] Built target freenect-wavrecord
[ 39%] Built target freenect_sync
[ 42%] Built target freenect-glpclview
[ 46%] Built target freenect-camtest
[ 50%] Built target freenect-glview
[ 53%] Built target freenect-regview
[ 57%] Built target freenect-regtest
[ 60%] Built target freenect-tiltdemo
[ 64%] Built target freenect-chunkview
[ 67%] Built target freenect-micview
[ 71%] Built target freenect-hiview
[ 76%] Built target fakenect-record
[ 83%] Built target fakenect
[ 87%] Built target freenect_sync_static
[ 91%] Built target freenect-cpp_pcview
[ 94%] Built target freenect-cppview
[ 96%] Generating freenect3.c
/bin/sh: 1: CYTHON_EXECUTABLE-NOTFOUND: not found
make[2]: *** [wrappers/python/CMakeFiles/cython3_freenect.dir/build.make:74: wrappers/python/freenect3.c] Error 127
make[1]: *** [CMakeFiles/Makefile2:712: wrappers/python/CMakeFiles/cython3_freenect.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
我有 Python 3.8.10安装,我有 cython (0.29.24)

最佳答案

我想你需要cython3而不是 cython所以跑

sudo apt-get install cython3
然后运行 ​​ cmake再次与论点
-DCYTHON_EXECUTABLE=/usr/bin/cython3
可能它最终会变成这样
cmake .. -L -DBUILD_PYTHON3=ON -DPython3_EXACTVERSION=3.8.10 -DCYTHON_EXECUTABLE=/usr/bin/cython3

关于python - WSL Ubuntu - 制作 libfreenect - CYTHON_EXECUTABLE-NOTFOUND,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69201746/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com