zmwangx / rust-ffmpeg-sys

FFmpeg bindings for Rust.
113 stars 75 forks source link

fix: add mfplat dependencies for static build #47

Open Kingtous opened 1 year ago

Kingtous commented 1 year ago

This PR adds link libraries which are necessary for static build.

This PR fixes error shown below:

note: avcodec.lib(mfenc.o) : error LNK2001: 无法解析的外部符号 IID_ICodecAPI
          avcodec.lib(mfenc.o) : error LNK2001: 无法解析的外部符号 IID_IMFMediaEventGenerator
          avcodec.lib(mf_utils.o) : error LNK2001: 无法解析的外部符号 IID_IMFTransform
          C:\rustplayer\target\debug\deps\RustPlayer.exe : fatal error LNK1120: 3 个无法解析的外部命令
Sculas commented 1 year ago

Could this be merged?