2011-02-24 48 views
1

我开始玩Kinect,我想使用OpenNI进行骨架跟踪。 由于我对C++的了解有限,最简单的选择是使用ofxOpenNI插件OpenFrameworks如何通过“库未加载:”问题?

我已经下载了插件,并成功编译的例子,但应用程序不能加载dylib:我使用的XCode在OSX 10.5.8使用了openFrameworks

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

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

我在我的项目中有要求的dylib文件,路径似乎没问题。 任何线索?

回答

1

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

事实上,检查在OpenNI github page的自述,在部分“发行说明”,我们发现如下:

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

你有来源,很明显,但解决这个自己可能会是一个相当苦差事。否则,您可以等待未来版本添加Leopard兼容性,或者您可以升级操作系统。

+0

RTFM的一个明确的例子:)操作系统升级似乎是最简单的解决方案。谢谢。 – 2011-02-25 11:39:10