【问题标题】:Problems when compiling the Open Kinect drivers for Python on Windows在 Windows 上为 Python 编译 Open Kinect 驱动程序时出现问题
【发布时间】:2011-07-29 09:02:20
【问题描述】:

我正在尝试编译 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 ==========

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

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

【问题讨论】:

  • 请注意,我以前的编译经验绝对为零,所以如果我遗漏了一些明显的东西,请赐教;-)

标签: python kinect


【解决方案1】:

链接器不知何故得到了错误的参数:输出文件与输入文件之一匹配。 C:/IvoPython/Kinnect/Driver 是您下载的现有路径吗?

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

【讨论】:

  • 我必须在 CMAKE 中手动将其设置为一个文件夹:i.stack.imgur.com/qsz0y.png 除 cython_freenect 之外的所有文件都正确构建。我认为问题的部分原因是 cython_freenect 构建了它的依赖项,即使它们已经存在。我会尝试把它放在完全不同的地方
  • 这似乎与之前修复的问题类似,虽然我并没有在修复后开始尝试编译。 github.com/OpenKinect/libfreenect/issues/235
  • 原来我已将它们移出并添加了指向其新位置的链接,但是我忘记删除旧链接。所以它说它找不到他们。现在构建完全成功:D
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2021-08-09
  • 2010-09-23
  • 2020-04-22
  • 1970-01-01
  • 2010-12-11
  • 1970-01-01
  • 2017-05-18
相关资源
最近更新 更多