larksuite / rsmpeg

A Rust crate that exposes FFmpeg's power as much as possible.
https://docs.rs/rsmpeg/latest/rsmpeg/
MIT License
677 stars 41 forks source link

在windows操作系统下编译rust程序,使用了ffmpeg依赖,编译出错 #179

Open Junffzz opened 7 months ago

Junffzz commented 7 months ago

1.在windows操作系统下编译rust程序,使用了ffmpeg依赖,编译出现下面报错: error: linking withlink.exefailed: exit code: 1120 | = note: libx264.lib(encoder.obj) : warning LNK4099: 未找到 PDB“libx264_10b.pdb”(使用“libx264.lib(encoder.obj)”或在“D:\workspace\rust\NextRiftXR_desktop\target\debug\deps\libx264_10b.pdb”中寻找);正在链接对象,如同没有调试信息一样

2.cargo.toml里的配置 [package.metadata.vcpkg] dependencies = ["ffmpeg[x264,x265,opus,avcodec,avdevice,avfilter,avformat,swresample,swscale]:x64-windows-static-md"] git = "https://github.com/microsoft/vcpkg" rev = "4a600e9"

3.环境变量 $env:FFMPEG_PKG_CONFIG_PATH="$(($PWD).path)\target\vcpkg\installed\x64-windows-static-md\lib\pkgconfig"

aegroto commented 4 months ago

Hello, I will try to answer you but as I do not speak chinese I may misunderstand some parts. I kindly apologize in advance.

I didn't experience this same issue while compiling on windows, but I didn't need debug information either. Are you sure that the generation of debugging symbols is enabled in your configuration?