-
-
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
Failed to load dynamic library 'opencv_dart.dll' #255
Comments
@BluesCool Hello. If it's difficult to resolve your network conditions to make |
@rainyl Hello. |
I just tested on my Windows 11 PC but can't reprocude it. Provide more informations please, e.g., the structure of |
I just added this dependency in pub.yaml, In cv.imread("test/images/lenna.png", flags: cv.IMREAD_COLOR); reported an error, as follows: [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Invalid argument(s): Failed to load dynamic library 'opencv_dart.dll': Invalid access to memory location. (error code: 998) #0 _open (dart:ffi-patch/ffi_dynamic_library_patch.dart:11:43) #1 new DynamicLibrary.open (dart:ffi-patch/ffi_dynamic_library_patch.dart:22:12) #2 loadNativeLibrary (package:opencv_dart/src/native_lib.dart:37:29) #3 cimgcodecs (package:opencv_dart/src/native_lib.dart:47:48) #4 cimgcodecs (package:opencv_dart/src/native_lib.dart) #5 imread. v_dart/src/core/base.dart:83:76) #7 imread. (package:opencv_dart/src/imgcodecs/imgcodecs.dart:29:5) #8 cvRunArena (package:opencv_dart/src/core/base.dart:234:31) #9 imread (package:opencv_dart/src/imgcodecs/imgcodecs.dart:27:10) Then, as mentioned above, I went to find 'opencv_dart.dll'. The folder that differs from your prompt is pub.flutter-io.cn. Yours is named pub.dev. |
|
1.‘ED67F391C1B1DD8E12BD2A01152ABE77010AB3DF2F499AFD0DBAE274517CA6BA’ My output is different from yours |
Apparently, your |
I downloaded and replaced it, but the effect is still the same. I tested the hash value and it is consistent with what you gave. |
I changed the computer and this problem did not occur. |
Well, maybe something was broken in your previous PC... |
According to your prompts, I went to ~\AppData\Local\Pub\Cache\hosted\pub.dev\opencv_dart-\windows to find the dll file, but I did not find it.
I may have switched the downloaded warehouse due to network reasons. My directory can be found in the directory \AppData\Local\Pub\Cache\hosted\pub.flutter-io.cn\opencv_dart-1.2.5\windows.
What do I need to do?
The text was updated successfully, but these errors were encountered: