From b56e043271c87a6c8250b12b38a7015b9a372f66 Mon Sep 17 00:00:00 2001 From: Sandeep Bansal Date: Fri, 25 Oct 2024 14:40:38 -0700 Subject: [PATCH] Static linking with latest ffmpeg fails with link errors Static linking with latest ffmpeg gives the following error: avdevice.lib(dshow.o) : error LNK2001: unresolved external symbol IID_IBaseFilter avdevice.lib(dshow_filter.o) : error LNK2001: unresolved external symbol IID_IBaseFilter fatal error LNK1120: 32 unresolved externals Adding the missing libraries to fix it --- build.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build.rs b/build.rs index eb81e0c..d9d6244 100644 --- a/build.rs +++ b/build.rs @@ -783,6 +783,8 @@ fn main() { // avutil depdendencies println!("cargo:rustc-link-lib=bcrypt"); println!("cargo:rustc-link-lib=user32"); + println!("cargo:rustc-link-lib=strmiids"); + println!("cargo:rustc-link-lib=mfuuid"); } paths