-
-
Notifications
You must be signed in to change notification settings - Fork 22
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
Use fixed dependency for opencv_core
and opencv_dart
#323
Comments
I encountered the same problem. I guess it was caused by the just-released |
@bdrmord002 sorry for the late reply.
Oh, it's correct. For now, you can override dartcv4 with |
opencv_core
and opencv_dart
still getting the same issue after setting dependency_overrides: neither 1.1.1 nor 1.1.2 worked either
|
i also tried directly using dartcv4 without using opencv_core. The error sill remains. I tested all released versions and all of them are broken. As i am shure that they worked in the past, i would expect that somehow the version of the dylib that all the relased versions use/download got corruped? |
@felix-ht I have tried with videoio example in https://github.com/rainyl/awesome-opencv_dart/tree/main/examples/videoio and it works, but with Flutter 3.27, some settings are required to be updated. could you please run remember to delete the I may be late to reply since it's late at night here. Edit: I have pushed the changes to videoio, check them at https://github.com/rainyl/awesome-opencv_dart/tree/fix-videoio |
Looks like overriding the dependencies resolved the imencode symbols to resolve the original issue. Any idea when a build of dartcv4 with these symbols will be deployed to avoid the overriding to a previous version? |
dartcv4 itself only contains dart codes for pure dart apps, and users must compile the dynamic libraries by themselves. opencv_core and opencv_dart are designed for flutter, which contains the build scripts that will be automatically triggered by flutter when building. newer versions for opencv_core and opencv_dart will be released recently. 😄 |
did
no and no overrides Getting this error:
|
For all the users with the problem, you can now upgrade to |
When running one of the linked demo programs using imencode() a dart::ffi DynamicLibrary.lookup error occurs.
Message: Failed to lookup symbol 'std_VecUChar_new_1': undefined symbol: std_VecUChar_new_1)
Callstack:
E/flutter ( 8228): #0 DynamicLibrary.lookup (dart:ffi-patch/ffi_dynamic_library_patch.dart:33:70)
E/flutter ( 8228): #1 CvNativeCore._std_VecUChar_new_1Ptr (package:dartcv4/src/g/core.g.dart:11785:44)
E/flutter ( 8228): #2 CvNativeCore._std_VecUChar_new_1Ptr (package:dartcv4/src/g/core.g.dart)
E/flutter ( 8228): #3 CvNativeCore._std_VecUChar_new_1 (package:dartcv4/src/g/core.g.dart:11786:36)
E/flutter ( 8228): #4 CvNativeCore._std_VecUChar_new_1 (package:dartcv4/src/g/core.g.dart)
E/flutter ( 8228): #5 CvNativeCore.std_VecUChar_new_1 (package:dartcv4/src/g/core.g.dart:11776:12)
E/flutter ( 8228): #6 new VecUChar (package:dartcv4/src/core/vec.dart:104:34)
E/flutter ( 8228): #7 imencodeAsync (package:dartcv4/src/imgcodecs/imgcodecs.dart:161:18)
E/flutter ( 8228): #8 _MyHomePageState.build. (package:videoio/main.dart:173:48)
Environment: Google Pixel 8 Pro Emulator on Android 35 API
Steps to reproduce the behavior:
Expected behavior
Expect same behavior as the cv::imencode function calls.
Smartphone (please complete the following information):
Additionally tried:
The text was updated successfully, but these errors were encountered: