我怎样才能通过“库未加载:”?问题?

发布于 2024-10-19 01:18:53 字数 1435 浏览 7 评论 0原文

我开始使用 Kinect,我想使用 OpenNI 进行骨骼跟踪。 由于我对 C++ 的了解有限,最简单的选择是使用 ofxOpenNI 插件来 OpenFrameworks

我已经下载了插件,并成功编译了示例,但应用程序无法加载 dylib:

[Session started at 2011-02-24 11:46:27 +0000.]
dyld: Library not loaded: @executable_path/./../../../data/openni/lib/libnimCodecs.dylib
  Referenced from: /Users/george/Downloads/FirefoxDownloads/of_preRelease_v0062_osx_FAT/apps/examples/NI_userIsolation_4/bin/emptyExampleDebug.app/Contents/MacOS/emptyExampleDebug
  Reason: no suitable image found.  Did find:
    /Users/george/Downloads/FirefoxDownloads/of_preRelease_v0062_osx_FAT/apps/examples/NI_userIsolation_4/bin/emptyExampleDebug.app/Contents/MacOS/./../../../data/openni/lib/libnimCodecs.dylib: unknown required load command 0x80000022
    /Users/george/Downloads/FirefoxDownloads/of_preRelease_v0062_osx_FAT/apps/examples/NI_userIsolation_4/bin/emptyExampleDebug.app/Contents/MacOS/./../../../data/openni/lib/libnimCodecs.dylib: unknown required load command 0x80000022
    /usr/lib/libnimCodecs.dylib: unknown required load command 0x80000022

The Debugger has exited due to signal 5 (SIGTRAP).The Debugger has exited due to signal 5 (SIGTRAP).

我在 osx 10.5.8 上使用 XCode 和 OpenFrameworks 062。

这是一些背景知识,但我想 dylib 问题是一般的东西。

我的项目中有请求的 dylib 文件,路径看起来没问题。 有什么线索吗?

I started playing with the Kinect and I would like to use skeleton tracking using OpenNI.
Since my knowledge of c++ is limited, the easiest option is to use the ofxOpenNI addon for OpenFrameworks.

I've downloaded the addon, and successfully compiled the example, but the application can't load a dylib:

[Session started at 2011-02-24 11:46:27 +0000.]
dyld: Library not loaded: @executable_path/./../../../data/openni/lib/libnimCodecs.dylib
  Referenced from: /Users/george/Downloads/FirefoxDownloads/of_preRelease_v0062_osx_FAT/apps/examples/NI_userIsolation_4/bin/emptyExampleDebug.app/Contents/MacOS/emptyExampleDebug
  Reason: no suitable image found.  Did find:
    /Users/george/Downloads/FirefoxDownloads/of_preRelease_v0062_osx_FAT/apps/examples/NI_userIsolation_4/bin/emptyExampleDebug.app/Contents/MacOS/./../../../data/openni/lib/libnimCodecs.dylib: unknown required load command 0x80000022
    /Users/george/Downloads/FirefoxDownloads/of_preRelease_v0062_osx_FAT/apps/examples/NI_userIsolation_4/bin/emptyExampleDebug.app/Contents/MacOS/./../../../data/openni/lib/libnimCodecs.dylib: unknown required load command 0x80000022
    /usr/lib/libnimCodecs.dylib: unknown required load command 0x80000022

The Debugger has exited due to signal 5 (SIGTRAP).The Debugger has exited due to signal 5 (SIGTRAP).

I am using XCode on osx 10.5.8 with OpenFrameworks 062.

This was a bit of background, but I imagine the dylib problem is something general.

I have the requested dylib files in my project, and the path seems ok.
Any clues ?

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

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

发布评论

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

评论(1

°如果伤别离去 2024-10-26 01:18:53

听起来这些库虽然存在,但与您的系统不兼容——它找到它们但无法加载它们。

事实上,请检查 OpenNI github 页面 上的“发行说明”部分中的自述文件,我们发现以下内容:

* MacOSX: Only OSX 10.6 (Snow Leopard) with an Intel based CPU is currently supported.

显然,您有源代码,但自己解决这个问题可能会很麻烦。否则,您可以等待,看看未来的版本是否会添加 Leopard 兼容性,或者您可以升级您的操作系统。

Sounds like the libs, though present, aren't compatible with your system -- it finds them but can't load them.

And indeed, checking the README on the OpenNI github page, in the section "Release Notes", we find the following:

* MacOSX: Only OSX 10.6 (Snow Leopard) with an Intel based CPU is currently supported.

You have the source, obviously, but fixing this yourself would probably be quite a chore. Otherwise, you could wait and see if future releases add Leopard compatibility, or you could upgrade your OS.

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