Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

maven project call webcam-capture fail on aarch64 platform #878

Open
dshup opened this issue Oct 10, 2022 · 5 comments
Open

maven project call webcam-capture fail on aarch64 platform #878

dshup opened this issue Oct 10, 2022 · 5 comments

Comments

@dshup
Copy link

dshup commented Oct 10, 2022

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:

`
com.github.sarxos
webcam-capture
0.3.12

    <dependency>
        <groupId>com.nativelibs4java</groupId>
        <artifactId>bridj</artifactId>
        <version>0.7.0</version>
    </dependency>`
@dshup
Copy link
Author

dshup commented Oct 10, 2022

    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>

@shinobisoft
Copy link

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

@alexmao86
Copy link
Collaborator

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

@dshup
Copy link
Author

dshup commented Oct 25, 2022

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

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

@Jeizz
Copy link

Jeizz commented Nov 17, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants