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

发布于 2024-11-27 02:07:31 字数 1718 浏览 0 评论 0原文

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

enter image description here

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

度的依靠╰つ 2024-12-04 02:07:31

不知何故,链接器得到了错误的参数:输出文件与输入文件之一匹配。
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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文