libfreenect 错误:“查找函数“freenect_set_depth_format”时出错:libfreenect.so”

发布于 2024-12-20 08:32:50 字数 942 浏览 4 评论 0原文

libfreenect

-------------------------------------------------------------------------------
Test set: org.openkinect.freenect.FreenectTest
-------------------------------------------------------------------------------
Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.138 sec <<< FAILURE!
org.openkinect.freenect.FreenectTest  Time elapsed: 0 sec  <<< ERROR!
java.lang.UnsatisfiedLinkError: Error looking up function 'freenect_set_depth_format':
/home/richard/libfreenect/wrappers/java/../../build/lib/libfreenect.so: 
undefined symbol: freenect_set_depth_format

我使用的是 Xubuntu 11.10,其中 Ubuntu 手动安装 使用 freeglu3-dev 而不是 libglu3-dev 可以正常工作。我能够成功运行 glview 。

还有其他人经历过这个错误吗?

有谁能够解决这个错误吗?

I get the following error when making the Java JNA Wrapper for libfreenect:

-------------------------------------------------------------------------------
Test set: org.openkinect.freenect.FreenectTest
-------------------------------------------------------------------------------
Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.138 sec <<< FAILURE!
org.openkinect.freenect.FreenectTest  Time elapsed: 0 sec  <<< ERROR!
java.lang.UnsatisfiedLinkError: Error looking up function 'freenect_set_depth_format':
/home/richard/libfreenect/wrappers/java/../../build/lib/libfreenect.so: 
undefined symbol: freenect_set_depth_format

I am using Xubuntu 11.10 for which the Ubuntu Manual Install works fine using freeglut3-dev instead of libglut3-dev. I am able to run glview successfully.

Has anyone else experienced this error?

Has anyone been able to resolve this error?

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

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

发布评论

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

评论(1

明媚如初 2024-12-27 08:32:50

我在网上找到了这个,在页面上的最后一篇文章中,用户提到他能够找到解决方案。我希望它有帮助。

来自 https://github.com/OpenKinect/libfreenect/issues/239

大约线 改变

第190章

freenect_set_depth_mode(this, fmt.intValue());

freenect_set_video_format(this, fmt.intValue());

freenect_set_video_mode(this, fmt.intValue());

并在最后更改

private static native int freenect_set_depth_format(NativeDevice dev, int i);

private static native int freenect_set_depth_mode(NativeDevice dev, int i);

private static native int freenect_set_video_format(NativeDevice dev, int i);

私有静态本机 int freenect_set_video_mode(NativeDevice dev, int i);

I found this on the web and in the last post on the page the user mentions that he was able to find a solution. I hope it helps.

From https://github.com/OpenKinect/libfreenect/issues/239 :

around line 190 change

freenect_set_depth_format(this, fmt.intValue());
to
freenect_set_depth_mode(this, fmt.intValue());

and

freenect_set_video_format(this, fmt.intValue());
to
freenect_set_video_mode(this, fmt.intValue());

and at the end change

private static native int freenect_set_depth_format(NativeDevice dev, int i);
to
private static native int freenect_set_depth_mode(NativeDevice dev, int i);

and

private static native int freenect_set_video_format(NativeDevice dev, int i);
to
private static native int freenect_set_video_mode(NativeDevice dev, int i);

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