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

Error 'opencv2/core/core.hpp' file not found in ios #66

Open
ldthinh opened this issue Sep 24, 2023 · 2 comments
Open

Error 'opencv2/core/core.hpp' file not found in ios #66

ldthinh opened this issue Sep 24, 2023 · 2 comments

Comments

@ldthinh
Copy link

ldthinh commented Sep 24, 2023

Hi author and community,

First of all, thanks for open-source being very useful for developers.
I am developing a plugin/library for Flutter, and everything is fine for Android but when using opencv.framework (v4.8.0, release v19)for ios I encountered the issue " 'opencv2/ core/core.hpp' file not found" , because I didn't find any demos or examples of using this library for iOS, I don't know whether this is an error due to this library or because I am lacking in its configuration, I have attached the source code here for convenience in reproducing for iOS. I greatly appreciate it when someone has found a solution to this problem.

Thanks

source
Source code test library opencv.framework

error image
Screen Shot 2023-09-22 at 6 00 29 PM

config image

image

@ldthinh ldthinh changed the title Error 'opencv2/core/core.hpp' file note found in ios Error 'opencv2/core/core.hpp' file not found in ios Sep 24, 2023
@nihui
Copy link
Owner

nihui commented Sep 26, 2023

sorry, I have no idea, but we may learn header_dir from

https://github.com/CocoaPods/Specs/blob/master/Specs/e/a/f/OpenCV2/4.3.0/OpenCV2.podspec.json

  "preserve_paths": "opencv2.framework",
  "source_files": "opencv2.framework/Versions/A/Headers/**/*{.h,.hpp}",
  "public_header_files": "opencv2.framework/Versions/A/Headers/**/*{.h,.hpp}",
  "vendored_frameworks": "opencv2.framework",
  "header_dir": "opencv2",
  "header_mappings_dir": "opencv2.framework/Versions/A/Headers/",

@laurenspriem
Copy link

@ldthinh Out of curiosity, have you made any progress with the Flutter plugin?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants