-
-
Notifications
You must be signed in to change notification settings - Fork 28
Description
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:
- Take a video on the Emulator
- Checkout Videoio project tracked in https://github.com/rainyl/awesome-opencv_dart.git
- Use the selection button.
- Select the recorded video
- Click the Start button to play.
- Should see exception
Expected behavior
Expect same behavior as the cv::imencode function calls.
Smartphone (please complete the following information):
- Device: Google Pixel 8 Pro on Android 35 API
- ABI Version: x86_64
Additionally tried:
- inspecting the dll build that should be generated. Looks like symbol is exported
- adding doNotStrip in packageOptions for all .so files in build.gradle
- different encodings including JPEG