在制作 Java JNA Wrapper 时出现以下错误对于 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 Manual Install使用 freeglut3-dev 而不是 libglut3-dev 可以正常工作。我能够成功运行 glview 。
还有其他人遇到过这个错误吗?
有人能够解决这个错误吗?
最佳答案
我在网上找到了这个,在页面上的最后一篇文章中,用户提到他能够找到解决方案。我希望它有帮助。
来自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)静态 native int freenect_set_depth_format(NativeDevice dev, int i);
到
私有(private)静态 native int freenect_set_depth_mode(NativeDevice dev, int i);
和
私有(private)静态 native int freenect_set_video_format(NativeDevice dev, int i);
到
私有(private)静态 native int freenect_set_video_mode(NativeDevice dev, int i);
关于java - libfreenect 错误 : "Error looking up function ' freenect_set_depth_format': libfreenect. 所以”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8432091/