如何通过“未加载的库”:问题? [英] How can I get past a "Library not loaded:" issue?

查看:255
本文介绍了如何通过“未加载的库”:问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开始使用Kinect,我想使用骨骼跟踪使用OpenNI。
由于我对c ++的了解有限,最简单的选择是使用 ofxOpenNI 插件< a href =http://openframeworks.cc/ =nofollow> 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.

这篇关于如何通过“未加载的库”:问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆