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

Static linking with vcpkg does not work in Windows unless you link to some extra libraries in build.rs #28

Open
redzic opened this issue Oct 23, 2021 · 0 comments

Comments

@redzic
Copy link

redzic commented Oct 23, 2021

Hi, I was not able to get static linking working on windows via vcpkg unless I modified the build.rs to link to some extra libraries to fix some linker errors. I had this issue by using ffmpeg-next 4.4 with just the static feature enabled.

I had to link against these libraries (which worked for me by just adding println!("cargo:rustc-link-lib=...") in the build.rs):

  • crypt32
  • Setupapi
  • winmm
  • Imm32
  • Version
  • mfplat
  • strmiids
  • mfuuid
  • Vfw32
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

1 participant