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

How to compile production app with opencv_dart.dll #152

Closed
PanteoPro opened this issue Jul 11, 2024 · 3 comments
Closed

How to compile production app with opencv_dart.dll #152

PanteoPro opened this issue Jul 11, 2024 · 3 comments
Labels
question Further information is requested

Comments

@PanteoPro
Copy link

Question

When I compile a windows production application, a file is created in the destination folder opencv_dart.dll .
But when any method from the opencv_dart library is called in the release application, the application crashes.
But when on the client where I installed my application, I registered OPENCV_DART_LIB_PATH in the PATH and specified the address of the result of the conan build command conan build . -b missing -s compiler.cppstd=20 where the generated opencv_dart.dll files, then the application is working fine.
How to make sure that the user does not need to register the library in the PATH himself opencv_dart.dll ?

@PanteoPro PanteoPro added the question Further information is requested label Jul 11, 2024
@rainyl
Copy link
Owner

rainyl commented Jul 14, 2024

NEVER use OPENCV_DART_LIB_PATH except you are testing this package!

if you build via flutter build windows --release, opencv_dart.dll should be downloaded and copied to the output directory.

image

If you are building this project entirely by yourself, please fix it by yourself.

@rainyl
Copy link
Owner

rainyl commented Jul 18, 2024

@PanteoPro I am sorry that it's a bug, would you please setup it manually according to #160 until a hot fix version v1.1.1 be released?

@rainyl
Copy link
Owner

rainyl commented Jul 18, 2024

This should be fixed in https://github.com/rainyl/opencv_dart/tree/1.1.0%2B1, and a cherry pick to main in be648bc

@rainyl rainyl closed this as completed Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants