nativelibs4java / JNAerator

JNAerator: native bindings generator for JNA / BridJ / Node.js
http://jnaerator.googlecode.com
504 stars 108 forks source link

uvc_mjpeg2rgb failed to get address #107

Closed lobsteroh closed 8 years ago

lobsteroh commented 8 years ago

would anybody be so kind to show me what elements are needed to get this to work reliably ... in some eclipse projects i see this

Feb 28, 2016 12:22:37 PM org.bridj.BridJ log INFO: Failed to get address of method protected static native void org.openpnp.libuvc4j.UvcLibrary.uvc_set_button_callback(long,org.openpnp.libuvc4j.UvcLibrary$uvc_button_callback_t,long) Feb 28, 2016 12:22:37 PM org.bridj.BridJ log INFO: Failed to get address of method protected static native int org.openpnp.libuvc4j.UvcLibrary.uvc_yuyv2y(long,long) Feb 28, 2016 12:22:37 PM org.bridj.BridJ log INFO: Failed to get address of method protected static native int org.openpnp.libuvc4j.UvcLibrary.uvc_yuyv2uv(long,long) Feb 28, 2016 12:22:37 PM org.bridj.BridJ log INFO: Failed to get address of method protected static native int org.openpnp.libuvc4j.UvcLibrary.uvc_mjpeg2rgb(long,long)

this alert will result at runtime in ...

Exception in thread "Thread-2" java.lang.UnsatisfiedLinkError: org.openpnp.libuvc4j.UvcLibrary.uvc_mjpeg2rgb(JJ)I at org.openpnp.libuvc4j.UvcLibrary.uvc_mjpeg2rgb(Native Method) at org.openpnp.libuvc4j.UvcLibrary.uvc_mjpeg2rgb(UvcLibrary.java:1537) at com.lobsterman.JavaGrinders.control.UVCDeviceManager_pnp$1.apply(UVCDeviceManager_pnp.java:494)

in the other cases it works just fine. in my opinion i am doing the very same thing in the instances that work and those that don't. any suggestions where the critical elements reside that make this work ... i feel like i am using the same jar file and the same static dylib. any suggestions?