如何通过“未加载的库”:问题?

编程入门 行业动态 更新时间:2024-10-27 07:29:55
本文介绍了如何通过“未加载的库”:问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

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

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.

我已经下载了addon,示例,但应用程序无法加载dylib:

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).

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

I am using XCode on osx 10.5.8 with OpenFrameworks 062.

这是一个背景,但我想象dylib问题是一般的。

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

我有我的项目中请求的dylib文件,路径似乎确定。 任何线索?

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

推荐答案

听起来像libs,虽然存在,不兼容您的系统 - 找到它们,但无法加载它们。

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

确实,检查 OpenNI github page ,在版本说明部分,我们找到以下内容:

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.

你有源代码,显然,但修复这本身可能会是一个杂烩。否则,您可以等待,看看将来的版本是否添加了Leopard兼容性,或者您可以升级操作系统。

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.

更多推荐

如何通过“未加载的库”:问题?

本文发布于:2023-11-26 15:34:30,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1634284.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:加载

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!