在Windows上编译Python的Open Kinect驱动程序时出现问题

时间:2011-07-29 09:02:20

标签: python kinect

我正在尝试编译the Open Kinect drivers for Python on Windows I made a Make file with CMake (link)并尝试使用VC ++ Express进行编译。

除了Python包装器之外,所有内容似乎都可以正常编译(查看器示例正常工作)。我更改了freenect的输出文件夹,它将freenect.lib放在另一个文件夹中以防止发生冲突。当我改变它并尝试编译cython_freenect时,我得到:

1>------ Build started: Project: ZERO_CHECK, Configuration: Release Win32 ------
2>------ Build started: Project: freenect, Configuration: Release Win32 ------
2>     Creating library C:/IvoPython/Kinect/Driver/lib/Release/freenect.lib and object C:/IvoPython/Kinect/Driver/lib/Release/freenect.exp
2>  freenect.vcxproj -> C:\IvoPython\Kinect\Driver\Release\freenect.dll
3>------ Build started: Project: freenect_sync, Configuration: Release Win32 ------
3>     Creating library C:/IvoPython/Kinect/Driver/lib/Release/freenect_sync.lib and object C:/IvoPython/Kinect/Driver/lib/Release/freenect_sync.exp
3>  freenect_sync.vcxproj -> C:\IvoPython\Kinect\Driver\Release\freenect_sync.dll
4>------ Build started: Project: cython_freenect, Configuration: Release Win32 ------
4>LINK : fatal error LNK1149: output filename matches input filename 'C:\IvoPython\Kinect\Driver\lib\Release\freenect.lib'
========== Build: 3 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

奇怪的是它无法找到库,因为它只是创建它并且我手动将它链接到库。

enter image description here

关于我做错了什么的建议?据我所知,我遵循了Python Wrapper for Windows guide中的所有步骤。

1 个答案:

答案 0 :(得分:2)

链接器以某种方式获得了错误的参数:输出文件与其中一个输入文件匹配。 C:/ IvoPython / Kinnect / Driver是您下载的现有路径吗?

你应该尝试在Kinnect之外选择一个构建目标,也许是C:/ IvoPython / build