使用 Daniel Shiffman 的 Kinect 处理库出现 UnsatisfiedLinkError

发布于 2024-10-09 16:47:44 字数 2028 浏览 5 评论 0原文

我正在尝试让 Daniel Shiffman 更新的 Kinect 库中的一些示例正常工作。我安装了 openkinect,并将所有库放在正确的位置。我不太确定问题是什么,但终端中的 glview 测试在插入 Kinect 的情况下工作正常。我在 intel Macbook (2007) 上运行 10.5.8,并使用处理 1.21。我意识到几乎每个运行库的人都在使用 Snow Leopard,这可能是问题所在吗?任何帮助将不胜感激。

编辑:我发现这个页面非常有帮助,但可惜我仍然收到错误。

http://openkinect.org/wiki/Installation/Compilation_Guides

奇怪的是,openframeworks 演示运行得很好,所以我不认为 openkinect 的安装有问题。我在 openkinect 的谷歌群组页面上问了同样的问题。我不是唯一一个遇到这个问题的人,我也在处理论坛上看到了这个问题。如果有什么我可以澄清的,请随时询问。

以下是错误:

processing.app.debug.RunnerException: UnsatisfiedLinkError: /Users/milespeyton/Desktop/projects/processing/libraries/openkinect/library/libKinect.jnilib: 
    at processing.app.Sketch.placeException(Sketch.java:1543)
    at processing.app.debug.Runner.findException(Runner.java:583)
    at processing.app.debug.Runner.reportException(Runner.java:558)
    at processing.app.debug.Runner.exception(Runner.java:498)
    at processing.app.debug.EventThread.exceptionEvent(EventThread.java:367)
    at processing.app.debug.EventThread.handleEvent(EventThread.java:255)
    at processing.app.debug.EventThread.run(EventThread.java:89)
Exception in thread "Animation Thread" java.lang.UnsatisfiedLinkError: /Users/milespeyton/Desktop/projects/processing/libraries/openkinect/library/libKinect.jnilib: 
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1822)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1739)
    at java.lang.Runtime.loadLibrary0(Runtime.java:822)
    at java.lang.System.loadLibrary(System.java:993)
    at org.openkinect.Context.<clinit>(Context.java:43)
    at org.openkinect.processing.Kinect.start(Kinect.java:40)
    at RGBDepthTest.setup(RGBDepthTest.java:33)
    at processing.core.PApplet.handleDraw(PApplet.java:1583)
    at processing.core.PApplet.run(PApplet.java:1503)
    at java.lang.Thread.run(Thread.java:613)

I'm trying to get some of the examples in Daniel Shiffman's updated Kinect library to work. I installed openkinect, and have all the libraries in the right place. I'm not really sure what the problem is, but the glview test in the terminal works fine with the Kinect plugged in. I'm running 10.5.8 on an intel Macbook (2007) and am using Processing 1.21. I realized that nearly everyone running the libraries are using Snow Leopard, could that be the problem? Any help would be appreciated.

EDIT: I found this page which was very helpful, but alas I am still getting errors.

http://openkinect.org/wiki/Installation/Compilation_Guides

Oddly the openframeworks demo works perfectly, so I don't think the installation of openkinect was the problem. I asked the same question on the google groups page for openkinect. I'm not the only one with this problem, I saw it popping up on the Processing forums as well. Don't hesitate to ask if there's anything I can clarify.

Here are the errors:

processing.app.debug.RunnerException: UnsatisfiedLinkError: /Users/milespeyton/Desktop/projects/processing/libraries/openkinect/library/libKinect.jnilib: 
    at processing.app.Sketch.placeException(Sketch.java:1543)
    at processing.app.debug.Runner.findException(Runner.java:583)
    at processing.app.debug.Runner.reportException(Runner.java:558)
    at processing.app.debug.Runner.exception(Runner.java:498)
    at processing.app.debug.EventThread.exceptionEvent(EventThread.java:367)
    at processing.app.debug.EventThread.handleEvent(EventThread.java:255)
    at processing.app.debug.EventThread.run(EventThread.java:89)
Exception in thread "Animation Thread" java.lang.UnsatisfiedLinkError: /Users/milespeyton/Desktop/projects/processing/libraries/openkinect/library/libKinect.jnilib: 
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1822)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1739)
    at java.lang.Runtime.loadLibrary0(Runtime.java:822)
    at java.lang.System.loadLibrary(System.java:993)
    at org.openkinect.Context.<clinit>(Context.java:43)
    at org.openkinect.processing.Kinect.start(Kinect.java:40)
    at RGBDepthTest.setup(RGBDepthTest.java:33)
    at processing.core.PApplet.handleDraw(PApplet.java:1583)
    at processing.core.PApplet.run(PApplet.java:1503)
    at java.lang.Thread.run(Thread.java:613)

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

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

发布评论

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

评论(1

冧九 2024-10-16 16:47:44

对于遇到同样问题的人,我通过升级到 Snow Leopard 解决了这个问题。我不太确定为什么会这样,但现在所有 Kinect 处理库都可以正常工作。

For anyone with the same problem, I solved it by upgrading to Snow Leopard. I'm not exactly sure why this worked, but all of the Kinect Processing libraries work fine for me now.

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