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):
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