1

我正在尝试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)

4

1 回答 1

1

我认为你需要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
于 2021-12-23T02:57:21.790 回答