eduramiba / webcam-capture-driver-native

Native driver for Webcam Capture API
23 stars 8 forks source link

ERROR c.g.e.w.d.c.CaptureManagerDriver - Unexpected error listing video devices #18

Open i-make-robots opened 8 months ago

i-make-robots commented 8 months ago

Java 21 IntelliJ IDEA 2023.2.5 com.github.sarxos:webcam-capture:0.3.12 this library v1.0.0

README documentation does not mention modules. Workaround is to add requires io.github.eduramiba.webcamcapture;

Running the application as recommended, I get

14:38:26.220 [main] DEBUG com.github.sarxos.webcam.Webcam - Setting new capture driver com.github.eduramiba.webcamcapture.drivers.NativeDriver@4e096385
14:38:26.239 [webcam-discovery-service] ERROR c.g.e.w.d.c.CaptureManagerDriver - Unexpected error listing video devices
java.lang.UnsatisfiedLinkError: Can't load library: C:\Users\me\Documents\GitHub\myApp\CaptureManager.dll
14:38:26.241 [main] INFO  c.g.s.webcam.WebcamDiscoveryService - Discovery will not run - driver NativeDriver does not support this feature

I believe it's looking in the wrong place for the native driver.

eduramiba commented 8 months ago

Hi, take into account that you need to manually copy the correct DLLs where your application will be run as explained in the readme. They are in https://github.com/eduramiba/webcam-capture-driver-native/tree/master/natives

For Mac, they are bundled in the jars

i-make-robots commented 8 months ago

Uh... where in https://github.com/eduramiba/webcam-capture-driver-native/blob/master/README.md does it mention copying DLLs? Coz I read it and it's mostly one example for JavaFX that should probably be in a separate file.