【问题标题】:error - /usr/bin/ld: cannot find -lavutil in ubuntu 15.04错误 - /usr/bin/ld: 在 ubuntu 15.04 中找不到 -lavutil
【发布时间】:2015-08-24 11:26:00
【问题描述】:

我正在尝试为ffmpeg 编译tutorial1.c 可用here

程序返回此错误:

/usr/bin/ld: cannot find -lavutil
/usr/bin/ld: cannot find -lavformat
/usr/bin/ld: cannot find -lavcodec
/usr/bin/ld: cannot find -lavutil
collect2: error: ld returned 1 exit status

我已按照this compilation guide 中的说明在 ubuntu 15.04 中安装 ffmpeg

用于编译的命令:

gcc -I /home/adeshpande/ffmpeg_build/include/ -o tutorial01 tutorial01.c -lavutil -lavformat -lavcodec -lz -lavutil -lm

【问题讨论】:

    标签: ubuntu gcc ffmpeg libavcodec libavformat


    【解决方案1】:

    您可以添加 -L/path/to/folder/containing/avutil

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-05-07
    • 1970-01-01
    • 2016-01-31
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-01-03
    相关资源
    最近更新 更多