使用 OpenNI 和 Qt 编译 OpenCV 2.3

发布于 2024-11-28 05:56:58 字数 643 浏览 1 评论 0原文

对于使用 Microsoft Kinect 的项目,我目前想使用 OpenNI 框架编译 OpenCV。

我已经安装了 OpenNI、NITE 和 Kinect 驱动程序,但在编译 OpenCV 时遇到问题,以便我可以使用 OpenNI 进行开发。

为此,我启动了 cmake,获取了 OpenCV(2.3 版本)源代码,选择了 Visual Studio 2008 makefile,链接了所有必要的路径,检查了 "WITH_QT""WITH_OPENNI",设置Qt 文件和 OpenNI include 和 lib 文件夹的路径以及 PrimeSense 文件夹和生成的 MakeFiles 的路径,它们运行时没有错误。

然后,我启动了由 CMake 创建的 OpenCV.sln 解决方案,将其设置为 Release 并尝试构建整个包。不幸的是,它给了我一个错误:

http://pastebin.com/6L7wCx4r

我将其粘贴到那里,因为它很长。您可以在第 420 行左右看到错误。

有人知道那里出了什么问题以及我该如何修复它吗?如果有人能看一下那就太好了。

谢谢你!

for a project that uses the Microsoft Kinect I currently would like to compile OpenCV with the OpenNI framework.

I already have OpenNI, NITE and the Kinect drivers installed but I am having problems compiling OpenCV so that I can develop using OpenNI.

For this I started cmake, took the OpenCV (2.3 release) sources, selected Visual Studio 2008 makefiles, linked all necessary paths, checked "WITH_QT" and "WITH_OPENNI", set the paths to Qt files and the OpenNI include and lib folders as well as the PrimeSense folders and generated MakeFiles, which worked without errors.

I then started the OpenCV.sln solution that had been created by CMake, set it to Release and tried to build the whole package. Unfortunately it gives me an error:

http://pastebin.com/6L7wCx4r

I pasted it there since it's quite long. You can see the errors at about line 420.

Does anybody have an idea what is going wrong there and how I can fix it? Would be great if anybody could have a look at it.

Thank you!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

心清如水 2024-12-05 05:56:58

试试这个:

#pragma comment(linker, "/NODEFAULTLIB:atlthunk.lib")

Try this:

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