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

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

Open
Junffzz opened this issue Apr 23, 2024 · 1 comment

Comments

@Junffzz
Copy link

Junffzz commented Apr 23, 2024

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
Copy link
Contributor

aegroto commented Jul 15, 2024

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?

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

2 participants