Open sneurlax opened 1 month ago
sudo apt install libopencv-dev
might be enough, but this should be documented if so
a further issue is how we should package libopencv_wrapper.so with our apps for users ... users have to sudo apt install libopencv-dev
or similar, too, or they'll get:
flutter: Invalid argument(s): Failed to load dynamic library 'libcamera_[linux.so](http://linux.so/)': libopencv_[wrapper.so](http://wrapper.so/): cannot open shared object file: No such file or directory
flutter: #0 _open (dart:ffi-patch/ffi_dynamic_library_patch.dart:11)
flutter: #1 new [DynamicLibrary.open](http://dynamiclibrary.open/) (dart:ffi-patch/ffi_dynamic_library_patch.dart:22)
flutter: #2 new CameraLinux (package:camera_linux/camera_linux.dart:12)
so I need to build libopencv_wrapper.so and bundle it into my linux/CMakeLists.txt
When I
flutter pub add camera_linux
to a Flutter project on Ubuntu 20.04, I get the following error due to missing OpenCV:Would you please document how to resolve this issue in README.md?