You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Media Autobuild Suite编译FFmpeg时GLSLang强制编译问题求助

问题描述

使用Media Autobuild Suite为Windows编译功能更全面的FFmpeg可执行文件时,遇到GLSLang模块编译失败的问题。已在ffmpeg_options.txt中注释禁用了GLSLang、OpenGL及相关依赖选项,但套件仍尝试编译GLSLang,报错如下:

已禁用的选项(ffmpeg_options.txt)

#--enable-fontconfig
#--enable-libmfx
#--enable-decklink
#--enable-librist
#--enable-librtmp
#--enable-libssh
#--enable-libtesseract
#--enable-vapoursynth
#--enable-liblensfun
#--enable-libglslang
#--enable-vulkan
#--enable-opencl
#--enable-opengl
#--enable-cuda-nvcc
#--enable-libnpp
#--enable-libopenh264

编译失败的错误日志

Running git clone for glslang...
  Running git update for glslang...
┌ glslang git  ........................................ [Recently updated]
├ Running dependencies...
Likely error (tail of the failed operation logfile):
CPPFLAGS: -D_FORTIFY_SOURCE=0 -D__USE_MINGW_ANSI_STDIO=1
CFLAGS: -mthreads -mtune=generic -O2 -pipe
CXXFLAGS: -mthreads -mtune=generic -O2 -pipe
LDFLAGS: -pipe -static-libgcc -static-libstdc++
/usr/bin/python ./update_glslang_sources.py
/usr/bin/python: can't open file '/build/glslang-git/./update_glslang_sources.py': [Errno 2] No such file or directory
dependencies failed. Check C:/mab_suite/build/glslang-git/ab-suite.dependencies.log
This is required for other packages, so this script will exit.
  Creating diagnostics file...

Attach C:\mab_suite\build\logs.zip to the GitHub issue.
Make sure the suite is up-to-date before reporting an issue. It might've been fixed already.

Try running the build again at a later time.
解决方法

方法1:彻底跳过GLSLang编译

Media Autobuild Suite会预编译依赖库,部分库的编译开关不在FFmpeg的配置文件里,需额外操作:

  • 找到套件根目录下的全局配置文件(如build_options.txt),查找控制GLSLang编译的选项(类似BUILD_GLSLANG),将其设为no或注释掉。
  • 检查套件的依赖列表,确保没有其他强制依赖GLSLang的模块被启用,比如部分硬件加速组件或滤镜。

方法2:修复GLSLang脚本缺失问题(保留该库)

如果需要GLSLang功能,错误源于git克隆时未拉取完整子模块:

  1. 删除C:/mab_suite/build/glslang-git目录。
  2. 手动拉取完整的GLSLang仓库:执行git clone --recursive https://github.com/KhronosGroup/glslang.git,确保包含所有子模块文件。
  3. 重新启动Media Autobuild Suite的编译流程。

方法3:清理编译缓存

删除C:/mab_suite/build目录下的所有缓存文件,重新运行套件,避免旧缓存配置强制触发GLSLang编译。

内容的提问来源于stack exchange,提问作者TigerhawkT3

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.01 07:41:30