Skip to content
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 lookup symbol 'Mat_New': dlsym(RTLD_DEFAULT, Mat_New): symbol not found #251

Closed
fpcxsun opened this issue Sep 26, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@fpcxsun
Copy link

fpcxsun commented Sep 26, 2024

Describe the bug
Failed to lookup symbol 'Mat_New': dlsym(RTLD_DEFAULT, Mat_New): symbol not found

To Reproduce
Flutter 3.22.3
opencv_dart 1.2.3 crash in iOS, work fine in Android

Smartphone (please complete the following information):

  • Device: iPhone 11, iOS 17.6.1
  • ABI Version arm64-v8a

Additional context
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Invalid argument(s): Failed to lookup symbol 'Mat_New': dlsym(RTLD_DEFAULT, Mat_New): symbol not found
#0 DynamicLibrary.lookup (dart:ffi-patch/ffi_dynamic_library_patch.dart:33:70)
#1 CvNativeCore._Mat_NewPtr (package:opencv_dart/src/g/core.g.dart:3016:80)
#2 CvNativeCore._Mat_NewPtr (package:opencv_dart/src/g/core.g.dart)
#3 CvNativeCore._Mat_New (package:opencv_dart/src/g/core.g.dart:3018:25)
#4 CvNativeCore._Mat_New (package:opencv_dart/src/g/core.g.dart)
#5 CvNativeCore.Mat_New (package:opencv_dart/src/g/core.g.dart:3010:12)
#6 new Mat.empty. (package:opencv_dart/src/core/mat.dart:116:23)
#7 cvRun (package:opencv_dart/src/core/base.dart:83:76)
#8 new Mat.empty (package:opencv_dart/src/core/mat.dart:116:5)
#9 imdecode (package:opencv_dart/src/imgcodecs/imgcodecs.dart:96:15)

@fpcxsun fpcxsun added the bug Something isn't working label Sep 26, 2024
@rainyl
Copy link
Owner

rainyl commented Sep 26, 2024

@fpcxsun refer to #200 , #200 (comment)

Remember to take a look at Q&A (#212) first.

@fpcxsun
Copy link
Author

fpcxsun commented Sep 27, 2024

I add it by myself,then it work.
image

@fpcxsun fpcxsun closed this as completed Sep 27, 2024
@xiazhichao
Copy link

when create Mat object,Not work and I add it in embedded content,Is there a solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants