atduskgreg / opencv-processing

OpenCV for Processing. A creative coding computer vision library based on the official OpenCV Java API
Other
1.32k stars 464 forks source link

UnsatisfiedLinkError #121

Open kkirklewski opened 2 years ago

kkirklewski commented 2 years ago

I'm having troubles running basic OpenCV library examples after updating to MacOS Monterey. I get the "UnsatisfiedLinkError" error. Any idea how to solve it? Thanks.

274929318_4821325491256340_3474570458358252326_n

devwearsprada commented 2 years ago

Same here, also running MacOS Monterey on a M1 chip. Anyone got an idea what to do?

kkirklewski commented 2 years ago

Hey, I solved it eventually, check this out: https://discourse.processing.org/t/opencv-error-in-processing-4-0b2/33284/7

devwearsprada commented 2 years ago

Thank you so much! Worked like a charm 🥳

kkirklewski commented 2 years ago

cool!

nsputnik commented 1 year ago

I have the same issue on both Mojave Intel and Monterrey M1. If I follow the link provided by kkirklewski it seems to suggest copying a dylib file from the library to the library for a specific core location inside the Processing app. I tried this with libopencv_java245.dylib but I get the same error, just a different list of paths with the "Reason: image not found" at the end. The script is xtra_video.pde from the library XYscope https://github.com/ffd8/xyscope

ffd8 commented 1 year ago

@kkirklewski or @devwearsprada - any chance you've tried this on apple silicon and the latest stable release of Processing? I could only get it working with the Processing 4.0.1's Intel64 release, not the apple silicon one.. have a small theory and wonder if the updated OpenCV lib needs to check extra for aarch64 in the path name or if it's within the Processing app?

EDIT: nevermind, the latest dev where issue is solved can be found here.