2011-12-08 27 views
0

做时,我得到了以下错误Java JNA Wrapperlibfreenectlibfreenect错误:“错误查找功能‘freenect_set_depth_format’:libfreenect.so”

------------------------------------------------------------------------------- 
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 Manual Install工作正常使用freeglut3-dev而不是libglut3-dev。我能够成功运行glview。

是否有其他人遇到此错误?

有没有人能够解决这个错误?

回答

1

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

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

围绕线190变化

freenect_set_depth_format(this, fmt.intValue());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);private static native int freenect_set_video_mode(NativeDevice dev, int i);