1

Kinectで遊び始めましたが、OpenNIを使用したスケルトントラッキングを使用したいと思います。私のc++の知識は限られているので、最も簡単なオプションはOpenFrameworks用のofxOpenNIアドオンを使用することです。

アドオンをダウンロードし、サンプルを正常にコンパイルしましたが、アプリケーションが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).

私はOpenFrameworks062でosx10.5.8でXCodeを使用しています。

これは少し背景がありましたが、dylibの問題は一般的なものだと思います。

プロジェクトに要求されたdylibファイルがあり、パスは問題ないようです。手がかりはありますか?

4

1 に答える 1

1

libsは存在しますが、システムと互換性がないように聞こえます。libsは検出されますが、ロードできません。

実際、OpenNI githubページの「リリースノート」セクションでREADMEを確認すると、次のことがわかります。

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

明らかにソースはありますが、これを自分で修正するのはおそらくかなり面倒です。それ以外の場合は、将来のリリースでLeopardとの互換性が追加されるかどうかを確認するか、OSをアップグレードすることができます。

于 2011-02-25T08:46:42.750 に答える