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

UnsatisfiedLinkError #4

Closed
nsputnik opened this issue Aug 28, 2022 · 5 comments
Closed

UnsatisfiedLinkError #4

nsputnik opened this issue Aug 28, 2022 · 5 comments

Comments

@nsputnik
Copy link

With the xtra_video.pde example script I am getting an error "UnsatisfiedLinkError: no opencv_java245 in java.library.path" and then it lists the path to Processing.app/Contents/Java/core/library/macos-x86_64 and paths at documents/Processing/libraries to minim, video, and opencv_processing library directories. Running Mac OSX 10.14 Intel, getting the same error on 12.3 Apple Silicone.

@ffd8
Copy link
Owner

ffd8 commented Aug 29, 2022

@nsputnik I did some research on this, since it seems to be an issue with the 'OpenCV for Processing' and MacOS's new 64bit requirement and found this discussion on the opencv lib which points to this solution from the processing forum.
Let me know if that solves it (also in one or both setups).

EDIT: just saw you also posted on the repo issues above.. hmm will also check getting it working on my new setup (apple silicon + 12.5)

@ffd8
Copy link
Owner

ffd8 commented Aug 30, 2022

@nsputnik found a solution for my setup (MBP M1+, 12.5.x)

This worked fine for me using the Intel x86 build even though I'm on apple silicon. The first time I ran it, it warned that OpenCV isn't made for my hardware or something like that but ran.. now having quit and reopen, no more warning.. just works.

Unfortunately I can't figure out how to get it installed and working on Processing's Apple Silicon release... something I notice deep within Processing's package contents, Contents / Java / core / library / is a folder called macos-aarch64 (obviously for apple silicon ref), however the OpenCV lib doesn't have that folder.. only one called 'macosx64'.. tried manually created a folder to match the style for aarch but can't get it to find the link.. will make a post on the opencv issue to see if someone has given it a try since the stable releases for both hardware.

@nsputnik
Copy link
Author

@ffd8 That you so much.
So I opened Processing today and noticed there was an update for opencv-processing. I figured I would try running the update before following all of your instructions and run the script again. It is working! (X68 10.14). I don't know if commenting on the issue in the project prompted this but all seems good now. I'll try on Apple Silicon too and let you know the results. I think for the most part Rosetta 2 should help any X86 code on Apple Silicon, it's just not native code I guess.

@ffd8
Copy link
Owner

ffd8 commented Sep 1, 2022

@nsputnik Aha - awesome, also just did the same on latest processing with apple silicon = works just fine!
I see the issue as the latest dev was started in a new repo that wasn't linked to the original. Updating the lib within Processing now links to that new repo and hopefully a note will be added to the original readme pointing folks there.

@ffd8 ffd8 closed this as completed Sep 1, 2022
@ffd8
Copy link
Owner

ffd8 commented Sep 1, 2022

FYI, the xtra_video XYscope demo works fine in the x86 environment, but fails on apple silicon due to a gstreamer issue for the video library which is currently being worked on.

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

2 participants