简体   繁体   English

使用Python包装器安装libfreenect时CMake错误

[英]CMake Error When Installing libfreenect w/ Python Wrapper

I am trying to install libfreenect with the Python wrapper on my Windows 8 (64-bit) laptop. 我正在尝试在Windows 8(64位)笔记本电脑上使用Python包装器安装libfreenect。 I am using Python 3.4.3 in Anaconda 2.3.0. 我正在Anaconda 2.3.0中使用Python 3.4.3。 I seem to have all of the dependencies taken care of, but when I try and configure the build in the cmake gui, I get the following error: 我似乎已经处理了所有依赖项,但是当我尝试在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".

I am following the installation instructions from here: http://openkinect.org/wiki/Getting_Started#Windows 我正在按照此处的安装说明进行操作: http : //openkinect.org/wiki/Getting_Started#Windows

I am following the specific Python instruction from here: http://openkinect.org/wiki/Python_Wrapper_Windows 我从这里遵循特定的Python指令: http : //openkinect.org/wiki/Python_Wrapper_Windows

Anybody have any experience with this cmake error? 有人对此cmake错误有任何经验吗? The goal is to be able to interface with my Microsoft Kinect. 目标是能够与我的Microsoft Kinect交互。 I can provide more information as needed. 我可以根据需要提供更多信息。

EDIT: Added verbose version of cmake configuration output. 编辑:添加了详细版本的cmake配置输出。

I figured out a workaround. 我想出了一种解决方法。 For some funny reason, libfreenect or cmake thinks I have Python2 which messed up the rest of the Makefile listed in the comments section. 由于某些有趣的原因,libfreenect或cmake认为我有Python2,它弄乱了注释部分中列出的Makefile的其余部分。 After the include files (in case they are the culprit), I manually set the variable with the set(PYTHON_EXECUTABLE "C:/Users/user/Anaconda3/python.exe") and it generated correctly. 在包含文件之后(如果它们是罪魁祸首),我使用set(PYTHON_EXECUTABLE "C:/Users/user/Anaconda3/python.exe")手动设置了变量,并正确生成了该变量。 I am now going to compile it which is a completely separate issue Thank-you Tsavarev! 我现在要编译它,这是一个完全独立的问题,谢谢Tsavarev!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM