在Windows上编译Open Kinect驱动程序时的问题
我正在尝试在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 ==========
奇怪的是,它找不到这个库,因为它刚刚创建了这个库,而且我手动把它链接到了库里。
有没有人能给我一些建议,看看我哪里做错了?据我所知,我按照Windows的Python包装器指南中的所有步骤进行了操作。
1 个回答
2
似乎链接器收到了一个错误的参数:输出文件和输入文件有重复的地方。你下载的文件里,C:/IvoPython/Kinnect/Driver这个路径是存在的吗?
你应该尝试选择一个在Kinnect之外的构建目标,比如C:/IvoPython/build。