opencv_dart icon indicating copy to clipboard operation
opencv_dart copied to clipboard

Support macOS 10.15+

Open ywu2014 opened this issue 1 year ago • 6 comments

opencv_dart version is opencv_dart: ^1.2.4, but when i start app using command flutter run -d macos it shows Failed to load dynamic library 'libopencv_dart.dylib': dlopen failed: library "libopencv_dart.dylib" not found the readme document said it will download libs auto automatically, but it didn't fot me.

so i manually run commands below

flutter pub add opencv_dart
dart run opencv_dart:setup macos --arch x64

and it did download libs,but still show "libopencv_dart.dylib" not found

then i set the lib environment below

export OPENCV_DART_DISABLE_AUTO_BUILD=1
export OPENCV_DART_LIB_PATH=/Users/ywu/.pub-cache/hosted/pub.flutter-io.cn/opencv_dart-1.2.4/macos/GNUSparseFile.0/libopencv_dart.dylib

and this time,it shows no suitable image found image

my os version is macOS Catalina 10.15.7

ywu2014 avatar Sep 23 '24 08:09 ywu2014

@ywu2014 The minimum supported macos version is 11.0, I will try to support 10.15, you can try to build the project by yourself for now.

rainyl avatar Sep 23 '24 08:09 rainyl

thx,then about what time will you support 10.15,is there a general plan?

ywu2014 avatar Sep 23 '24 08:09 ywu2014

I am migrating the entire build system to cmake, including opencv.full, the most important dependency is ffmpeg, since github doesnt provide macos 10.15 runner, ffmpeg needs to be properly configured, also I am planning to support ffmpeg on android and ios, so it may take a long time to finish.

rainyl avatar Sep 23 '24 15:09 rainyl

@rainyl OK,thx!

ywu2014 avatar Sep 24 '24 00:09 ywu2014

Never mind.

I am going to reopen this issue to remind myself, hope you wont mind it.

rainyl avatar Sep 24 '24 01:09 rainyl

No problem!

ywu2014 avatar Sep 26 '24 00:09 ywu2014

opencv_dart and opencv_core version v1.3.0 have been published, with macos 10.15 and above supported.

rainyl avatar Oct 25 '24 11:10 rainyl