libfreenect 错误:“查找函数“freenect_set_depth_format”时出错:libfreenect.so”
为 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我在网上找到了这个,在页面上的最后一篇文章中,用户提到他能够找到解决方案。我希望它有帮助。
来自 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);