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 distribute the rust executable and dll #107

Open
dassio opened this issue Aug 4, 2023 · 1 comment
Open

how to distribute the rust executable and dll #107

dassio opened this issue Aug 4, 2023 · 1 comment

Comments

@dassio
Copy link

dassio commented Aug 4, 2023

when installed ImageMagick and successfully build it on my windows pc, the final Rust executable worked anywhere
but then transfer the final executable to another PC, it does not work:

  1. when not DLL is located with the final executable, nothing prints when invoked
  2. when copying the ImageMagick DLL to the same dir of the final executable, it complains failed to read image
  3. then I install ImageMagick on the new PC, and everything works

when how should I distribute the final executable?

@nlfiedler
Copy link
Owner

My Windows developer experience is more than 20 years out of date, so I can't speak to the best approach for producing a static binary, or if that is even possible. But that is the basic problem: there is an executable that is trying to find the necessary libraries, and that includes ImageMagick itself. Hence, installing ImageMagick resolves the issue, but expecting a user to do that is a bit much, so I admit this is problematic. However, I don't have any idea of a good solution.

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

2 participants