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

OpenCV Java 245 Missing #468

Closed
processing-bot opened this issue Apr 20, 2022 · 2 comments
Closed

OpenCV Java 245 Missing #468

processing-bot opened this issue Apr 20, 2022 · 2 comments

Comments

@processing-bot
Copy link
Collaborator

Created by: rjua1

Description

I am attempting to run the basic LiveCamTest example from the OpenCV library on Processing 4, but it crashes with ::
UnsatisfiedLinkError: no opencv_java245 in java.library.path:

:: then proceeds to list a variety of paths to app content and libraries folders. Inspired by this, I pasted the missing java245.dl file in the listed locations, but none of the errors cleared. I have none of these issues when running on Processing 3.

I am using the Video Library from Processing 4. I am running an M1 MacBook Pro OS 12.2.1

When running the afformentioned sketch, I also get these errors:
Processing video library using bundled GStreamer 1.16.2
java.lang.NoSuchFieldException: sys_paths
at java.base/java.lang.Class.getDeclaredField(Class.java:2610)
at gab.opencv.OpenCV.addLibraryPath(Unknown Source)
at gab.opencv.OpenCV.initNative(Unknown Source)
at gab.opencv.OpenCV.(Unknown Source)
at LiveCamTest.setup(LiveCamTest.java:32)
at processing.core.PApplet.handleDraw(PApplet.java:2142)
at processing.awt.PSurfaceAWT$9.callDraw(PSurfaceAWT.java:1440)
at processing.core.PSurfaceNone$AnimationThread.run(PSurfaceNone.java:356)

@processing-bot
Copy link
Collaborator Author

Created by: benfry

This is an OpenCV problem; you'd need to take it up with the maintainer. If I recall correctly, the OpenCV library doesn't correctly use subfolders for the native libraries for different platforms, which breaks forward-compatibility.

@processing-bot
Copy link
Collaborator Author

Created by: github-actions[bot]

This issue has been automatically locked. To avoid confusion with reports that have already been resolved, closed issues are automatically locked 30 days after the last comment. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant