xiaojin093 2023-11-16 14:07 采纳率: 53.3%
浏览 3

windows ffmpeg编译unknown option--o

windows下编译ffmpeg,报错如下:
bj66@DESKTOP-ON29UF3 MINGW64 /d/ffmpeg-6.0.1
$ ./configure --prefix=./install --toolchain=msvc --arch=x86 --enable-shared --enable-gpl --enable-libx264 --enable-libx265 --enable-dxva2 --cc=CC --enable-cross-compile
CC is unable to create an executable file.
C compiler test failed.

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.libera.chat.
Include the log file "ffbuild/config.log" produced by configure as this will help
solve the problem.

config.log中错误如下:


```c++
test_cc
BEGIN ./ffconf.zktWejeE/test.c
    1    int main(void){ return 0; }
END ./ffconf.zktWejeE/test.c
CC -c -o ./ffconf.zktWejeE/test.o ./ffconf.zktWejeE/test.c
./compat/windows/mslink -o ./ffconf.zktWejeE/test.exe ./ffconf.zktWejeE/test.o
link: unknown option -- o
Try 'link --help' for more information.
C compiler test failed.

这个要怎么解决?
  • 写回答

1条回答 默认 最新

  • threenewbee 2023-11-16 14:34
    关注

    编译器的配置问题,你要配置好ffmpeg兼容的c编译器

    评论

报告相同问题?

问题事件

  • 创建了问题 11月16日

悬赏问题

  • ¥15 Vue3 大型图片数据拖动排序
  • ¥15 划分vlan后不通了
  • ¥15 GDI处理通道视频时总是带有白色锯齿
  • ¥20 用雷电模拟器安装百达屋apk一直闪退
  • ¥15 算能科技20240506咨询(拒绝大模型回答)
  • ¥15 自适应 AR 模型 参数估计Matlab程序
  • ¥100 角动量包络面如何用MATLAB绘制
  • ¥15 merge函数占用内存过大
  • ¥15 使用EMD去噪处理RML2016数据集时候的原理
  • ¥15 神经网络预测均方误差很小 但是图像上看着差别太大