我正在尝试在 Windows 上为 Python 编译 Open Kinect 驱动程序 我用 CMake(链接)制作了一个 Make 文件,并尝试用 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 ==========
奇怪的是它找不到库,因为它只是创建它,我手动将它链接到库。
关于我做错了什么的任何建议?据我所知,我遵循了Python Wrapper for Windows 指南中的所有步骤。