IT博客汇
  • 首页
  • 精华
  • 技术
  • 设计
  • 资讯
  • 扯淡
  • 权利声明
  • 登录 注册

    编译配置ffmpeg报错:ERROR: x264 not found using pkg-config

    小王发表于 2024-03-11 09:20:00
    love 0
    执行命令:
    ./configure --prefix=/usr/local/ffmpeg --enable-shared --disable-static --disable-doc  --enable-gpl --enable-libx264

    报错:
    ERROR: x264 not found using pkg-config

    打开/etc/profile,在末尾添加一行代码:
    export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
    保存
    source /etc/profile

    再次执行命令:
    ./configure --prefix=/usr/local/ffmpeg --enable-shared --disable-static --disable-doc  --enable-gpl --enable-libx264

    还是报同样的错

    执行命令:
    apt install pkg-config

    再次执行命令:
    ./configure --prefix=/usr/local/ffmpeg --enable-shared --disable-static --disable-doc  --enable-gpl --enable-libx264

    O了!


    小王 2024-03-11 17:20 发表评论


沪ICP备19023445号-2号
友情链接