-
-
Notifications
You must be signed in to change notification settings - Fork 26
Error loading libdartcv.dylib on macos #358
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
Comments
I updated cocoapods and got the same issue:
|
I did eventually get it working with great difficulty. For the opencv_core example:
First i had to make a build directory inside example:
Then I went to /Users/petercrady/StudioProjects/opencv_dart/packages/opencv_core/src and ran:
I then found all the dylibs and copied them into the ephemeral build directory:
I then went to that directory and had to codesign all of the files:
and then i was able to run the example app with no errors. This obviously isnt great since that directory will be deleted if you do flutter clean. Sorry to bother you with all this. I'm in way over my head with the C code so i have no idea what i'm doing. |
@pcrady Well, maybe I should apologize for the misleading exception message. TL;DR, actually it works as expected, you do not need to build and copy it manually. For macos, in order to support pure dart and Flutter, the dynamic library searching will firstly try to load I will change the error message to a warning when having some time. |
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
On m3 macos I cant find libdartcv.dylib.
This is for the example project:
To Reproduce
Try to run the example project on an M series mac.
The text was updated successfully, but these errors were encountered: