配置 FFmpeg 编译选项出现nasm/yasm not found or too old. Use --disable-x86asm for a crippled build.
时间: 2024-02-16 13:05:13 浏览: 598
这个问题意味着你缺少了 nasm 或 yasm 编译工具,FFmpeg 需要这些工具来编译 x86 汇编代码。
你可以尝试安装这些工具,例如在 Ubuntu 上,可以使用以下命令安装 nasm:
```
sudo apt-get install nasm
```
或者安装 yasm:
```
sudo apt-get install yasm
```
如果你已经安装了这些工具,但仍然遇到此问题,那么可能是它们的版本太旧了。请尝试更新它们,并重新编译 FFmpeg。
如果你不需要 FFmpeg 的 x86 汇编代码,可以按照提示使用 `--disable-x86asm` 选项来进行编译,但是这样会使得 FFmpeg 编译后的功能受到限制。
相关问题
nasm/yasm not found or too old. Use --disable-x86asm for a crippled build. If you think configure made a mistake, make sure you are using the latest version from Git. If the latest version fails, report the problem to the ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net. Include the log file "ffbuild/config.log" produced by configure as this will help solve the problem.
这个错误提示表明你的编译环境缺少或者版本过低,需要安装或更新 nasm 或 yasm。nasm 和 yasm 分别是两个汇编编译器,用于编译一些 x86 架构的汇编代码。
你可以按照以下步骤来安装 nasm 或 yasm:
1. 检查你的系统是否已经安装了 nasm 或 yasm。你可以通过在命令行终端中输入以下命令来检查:
```
nasm -v
yasm --version
```
如果这些命令无法正常执行或者提示找不到命令,说明你需要安装相应的汇编编译器。
2. 如果你使用的是 Ubuntu 或 Debian 等 Linux 发行版,可以通过以下命令来安装:
```
sudo apt-get install nasm yasm
```
如果你使用的是其他 Linux 发行版或者操作系统,可以通过相应的包管理器或者官方网站来下载并安装 nasm 或 yasm。
3. 安装完成后,重新运行 FFmpeg 的 configure 脚本,并确保 nasm 或 yasm 被正确地检测到。如果你仍然遇到问题,可以查看 "ffbuild/config.log" 文件,里面包含了详细的编译日志和错误信息,帮助你找出具体的问题所在。
如果你不需要使用 x86 汇编代码,也可以添加 `--disable-x86asm` 参数来禁用这个功能,从而避免这个错误。不过,这会导致编译出的 FFmpeg 版本缺少一些优化,性能可能会受到影响。
阅读全文
相关推荐
















