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

Failed to load dynamic library 'libopencv_dart.so': dlopen failed: library "libopencv_dart.so" not found. #29

Closed
fangjunai opened this issue Apr 18, 2024 · 8 comments
Labels
question Further information is requested

Comments

@fangjunai
Copy link

Error:
ArgumentError (Invalid argument(s): Failed to load dynamic library 'libopencv_dart.so': dlopen failed: library "libopencv_dart.so" not found)

Win10 x64, Android7(qemu),

Flutter 3.19.0 • channel stable • https://github.com/flutter/flutter.git
Framework • revision bae5e49bc2 (9 weeks ago) • 2024-02-13 17:46:18 -0800
Engine • revision 04817c99c9
Tools • Dart 3.3.0 • DevTools 2.31.1

Where is libopencv_dart.so stored in?

@fangjunai fangjunai added the question Further information is requested label Apr 18, 2024
@rainyl
Copy link
Owner

rainyl commented Apr 18, 2024

@rainyl rainyl closed this as completed Apr 18, 2024
@rainyl rainyl pinned this issue Apr 18, 2024
@VishGoria
Copy link

@rainyl the readme is ambiguous. kindly clarify the most required steps to run the sample app as I'm also getting the same error while I've already tried to run the following commands:

dart run opencv_dart:setup android --arch armeabi-v7a
dart run opencv_dart:setup android --arch arm64-v8a

@VishGoria
Copy link

@rainyl The commands are only creating empty folders inside the opencv_dart\android\src\main\jniLibs
although the libraries are added in the opencv_dart.caches folder and I've also tried to manually copy the .tar.gz from .caches to the corresponding arch folder in android/jniLibs but still getting the same error. Urgent help required
thanks in advance

@rainyl
Copy link
Owner

rainyl commented Apr 30, 2024

@VishGoria paste your command output please, you can also manually extract .tar.gz and copy libopencv_dart.so to corresponding directory

@rainyl
Copy link
Owner

rainyl commented May 2, 2024

@rainyl The commands are only creating empty folders inside the opencv_dart\android\src\main\jniLibs although the libraries are added in the opencv_dart.caches folder and I've also tried to manually copy the .tar.gz from .caches to the corresponding arch folder in android/jniLibs but still getting the same error. Urgent help required thanks in advance

Apologize for my mistake, It is a bug, will be fixed quickly.

@rainyl rainyl unpinned this issue Jun 10, 2024
@gustavovisentini
Copy link

gustavovisentini commented Jun 25, 2024

Launching lib/main.dart on iPhone 15 Pro in debug mode...
Running Xcode build...
└─Compiling, linking and signing... 994ms
Xcode build done. 3,7s
Failed to build iOS app
Error (Xcode): Framework 'opencv_dart' not found

Error (Xcode): Linker command failed with exit code 1 (use -v to see invocation)

Could not build the application for the simulator.
Error launching application on iPhone 15 Pro.

I am follow the instructions README, but not works,
Macbook air M1

@rainyl
Copy link
Owner

rainyl commented Jun 26, 2024

I have no mac M1 so can't test, I suggest you to add -v option to see the logs or setup it manually with -f option and try again.

This package supports universal framewrok but only tested on x86_64 simulators by myself, I don't know whether it works on arm64 simulators.

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

No branches or pull requests

4 participants