V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
loken2020
V2EX  ›  程序员

FFmpeg 静态编译

  •  
  •   loken2020 · Oct 19, 2022 · 1873 views
    This topic created in 1296 days ago, the information mentioned may be changed or developed.

    在以往的文章中,编译出来的 ffmpeg.exe 都不是完全静态的,总会依赖一些动态库,例如 libm.dll ,libz.dll ,libc.dll 等等。

    虽然 FFmpeg 的 configure 脚本 有一个 --enable-shared 选项,但这个选项只是 决定要不要生成 FFmpeg 的 8 个 API 库。不用 --enable-shared 选项 就是不生成 8 个 dll 动态库。

    但是即使不用 --enable-shared 选项 ,编译出来的 ffmpeg.exe 还是会依赖 libm.dll ,libz.dll ,libc.dll 等等动态库。

    有时候我们为了兼容性,往往希望生成一个 不依赖任何一个动态库的 ffmpeg.exe ,这个怎么做呢?

    https://ffmpeg.xianwaizhiyin.net/compile-ffmpeg/static.html

    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3154 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 00:24 · PVG 08:24 · LAX 17:24 · JFK 20:24
    ♥ Do have faith in what you're doing.