【ffmpeg】编译时报错:error: undefined reference to `av...
生活随笔
收集整理的這篇文章主要介紹了
【ffmpeg】编译时报错:error: undefined reference to `av...
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
1、問題描述
昨天使用ffmpeg庫編譯demo一切正常,今天再次鏈接ffmpeg庫時報了一堆錯誤:
error: undefined reference to `av_frame_alloc()'
error: undefined reference to `avio_close(AVIOContext*)'
error: undefined reference to `avcodec_find_encoder(AVCodecID)'
error: undefined reference to `avcodec_alloc_context3(AVCodec const*)'
error: undefined reference to `av_opt_set(void*, char const*, char const*, int)'
error: undefined reference to `avcodec_open2(AVCodecContext*, AVCodec const*, AVDictionary**)'
error: undefined reference to `av_frame_alloc()'
error: undefined reference to `av_image_alloc(unsigned char**, int*, int, int, AVPixelFormat, int)'
error: undefined reference to `avformat_alloc_context()'
error: undefined reference to `av_malloc(unsigned long)'
error: undefined reference to `avio_alloc_context(unsigned char*, int, int, void*, int (*)(void*, unsigned char*, int), int (*
總結
以上是生活随笔為你收集整理的【ffmpeg】编译时报错:error: undefined reference to `av...的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 【Qt】监视文件和目录的修改:QFile
- 下一篇: 【C++】clipp 一个命令行参数解析