在 Windows 上编译适用于 Python 的 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 包装器指南 中的所有步骤。
I'm trying to compile the Open Kinect drivers for Python on Windows I made a Make file with CMake (link) and tried compiling it with VC++ Express.
Everything seems to compile alright (the viewer sample works), except for the Python wrapper. I changed the output folder of freenect, which places freenect.lib in another folder to prevent a collision. When I changed this it and try to compile cython_freenect I get:
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 ==========
It's strange that it can't find the library, because it just created it and I manually linked it to the library.
Any suggestions as to what I'm doing wrong? As far as I know I followed all the steps in the Python Wrapper for Windows guide.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不知何故,链接器得到了错误的参数:输出文件与输入文件之一匹配。
C:/IvoPython/Kinnect/Driver 是您下载的现有路径吗?
您应该尝试选择 Kinnect 之外的构建目标,也许是 C:/IvoPython/build
Somehow the linker got a wrong argument: the output file matches one of the input files.
Is C:/IvoPython/Kinnect/Driver an exisiting path from your download ?
You should try to choose a build target outside Kinnect, maybe C:/IvoPython/build