webcam-capture icon indicating copy to clipboard operation
webcam-capture copied to clipboard

maven project call webcam-capture fail on aarch64 platform

Open dshup opened this issue 2 years ago • 5 comments

maven project call webcam-capture fail on aarch64 platform get exceptions:

java.lang.RuntimeException: Failed to initialize BridJ (java.lang.UnsatisfiedLinkError: /tmp/BridJExtractedLibraries2069336107326078457/libbridj.so: /tmp/BridJExtractedLibraries2069336107326078457/libbridj.so: 无法打开共享对象文件: 没有那个文件或目录 (Possible cause: can't load AMD 64-bit .so on a AARCH64-bit platform)) at org.bridj.Platform.initLibrary(Platform.java:444) at org.bridj.Platform.(Platform.java:228) at com.github.sarxos.webcam.ds.buildin.natives.OpenIMAJGrabber.(OpenIMAJGrabber.java:59) at com.github.sarxos.webcam.ds.buildin.WebcamDefaultDriver$WebcamNewGrabberTask.handle(WebcamDefaultDriver.java:55) at com.github.sarxos.webcam.WebcamProcessor$AtomicProcessor.run(WebcamProcessor.java:81)

Caused by: java.lang.UnsatisfiedLinkError: org.bridj.Platform.sizeOf_ptrdiff_t()I at org.bridj.Platform.sizeOf_ptrdiff_t(Native Method) at org.bridj.Platform.(Platform.java:232) at com.github.sarxos.webcam.ds.buildin.natives.OpenIMAJGrabber.(OpenIMAJGrabber.java:59) at com.github.sarxos.webcam.ds.buildin.WebcamDefaultDriver$WebcamNewGrabberTask.handle(WebcamDefaultDriver.java:55) at com.github.sarxos.webcam.WebcamProcessor$AtomicProcessor.run(WebcamProcessor.java:81)

my maven config:

` <groupId>com.github.sarxos</groupId> <artifactId>webcam-capture</artifactId> 0.3.12

    <dependency>
        <groupId>com.nativelibs4java</groupId>
        <artifactId>bridj</artifactId>
        <version>0.7.0</version>
    </dependency>`

dshup avatar Oct 10 '22 08:10 dshup

    maven config:

    <dependency>
        <groupId>com.github.sarxos</groupId>
        <artifactId>webcam-capture</artifactId>
        <version>0.3.12</version>
    </dependency>

    <dependency>
        <groupId>com.nativelibs4java</groupId>
        <artifactId>bridj</artifactId>
        <version>0.7.0</version>
    </dependency>

dshup avatar Oct 10 '22 09:10 dshup

See this https://github.com/sarxos/webcam-capture/issues/870#issuecomment-1210795046

shinobisoft avatar Oct 10 '22 14:10 shinobisoft

offical OpenImaj does not include aarch64, i.e. arm64.

alexmao86 avatar Oct 23 '22 13:10 alexmao86

offical OpenImaj does not include aarch64, i.e. arm64.

I got it, thank you! I already changed to use opencv

dshup avatar Oct 25 '22 02:10 dshup

is it possible to add what is necessary to make OpenImaj work on aarch64 ?

recently bridj includes the files for aarch64 in its latest version

Jeizz avatar Nov 17 '22 16:11 Jeizz