使用Python Wrapper安装libfreenect时出现CMake错误

时间:2015-09-19 18:50:59

标签: python cmake kinect cython

我正在尝试在我的Windows 8(64位)笔记本电脑上安装带有Python包装器的libfreenect。我在Anaconda 2.3.0中使用Python 3.4.3。我似乎已经完成了所有依赖项,但是当我尝试在cmake gui中配置构建时,我收到以下错误:

Operating system is Windows
Got System Processor AMD64
libfreenect will be installed to C:/Program Files/libfreenect
Headers will be installed to C:/Program Files/libfreenect/include/libfreenect
Libraries will be installed to C:/Program Files/libfreenect/lib
Found libusb-1.0:
 - Includes: C:/libusb-win32-bin-1.2.6.0/include
 - Libraries: C:/libusb-win32-bin-1.2.6.0/lib/msvc_i64/libusb.lib
   Entering             C:/libfreenect/src
   Returning to         C:/libfreenect
   Entering             C:/libfreenect/examples
   Returning to         C:/libfreenect
   Entering             C:/libfreenect/wrappers/c_sync
   Returning to         C:/libfreenect
   Entering             C:/libfreenect/wrappers/python
    CMake Error at wrappers/python/CMakeLists.txt:35 (install):
      install TARGETS given no LIBRARY DESTINATION for module target
      "cython_freenect".


   Returning to         C:/libfreenect
   Entering             C:/libfreenect/OpenNI2-FreenectDriver
   Returning to         C:/libfreenect
Configuring incomplete, errors occurred!
See also "C:/libfreenect/build/CMakeFiles/CMakeOutput.log".

我从这里按照安装说明操作: http://openkinect.org/wiki/Getting_Started#Windows

我从这里遵循特定的Python指令: http://openkinect.org/wiki/Python_Wrapper_Windows

有人对此cmake错误有任何经验吗?目标是能够与我的Microsoft Kinect接口。我可以根据需要提供更多信息。

编辑:添加了详细版本的cmake配置输出。

1 个答案:

答案 0 :(得分:1)

我想出了一个解决方法。出于某些有趣的原因,libfreenect或cmake认为我有Python2,它搞砸了评论部分中列出的其余Makefile。在包含文件之后(如果它们是罪魁祸首),我使用set(PYTHON_EXECUTABLE "C:/Users/user/Anaconda3/python.exe")手动设置变量并正确生成。我现在要编译它,这是一个完全独立的问题谢谢你Tsavarev!