最近,我对dLibs ( OpenKinect的Java包装器)产生了兴趣。但我在eclipse中运行代码时遇到了困难;我根据我的想法添加了库。如何运行代码,比如示例.pde文件?我写了这样的东西看看它是怎么工作的..。
public class Test {
public static void main(String[] args) {
Kinect.loadLibrary( "C:/Users/admin/Dropbox/new_workspace/dLibs/", "freenect.dll" );
Kinect k= new Kinect(0);
System.out.println(k.isReady());
}
}==========,但我得到了这个错误:
#_KINECT_ERROR___#
location: dLibs.freenect.FreenectLibrary.loadLibrary(FreenectLibrary.java:177)
message: Unable to load library : freenect.dll
message: path = "C:\Users\admin\Dropbox\new_workspace\dLibs/freenect.dll"
message: try 'MyKinect.loadLibrary( "your dll path/", "freenect.dll" )'FreenectLibrary的177行是关于loadLibrary(.)方法。
有人能帮我吗?
发布于 2014-01-02 23:35:30
我也在处理同样的问题。确保使用64位dll文件。还要确保路径是正确的,并且使用/!
https://stackoverflow.com/questions/19263885
复制相似问题