【ffmpeg】编译时报错:error: undefined reference to `av…

  • Post author:
  • Post category:其他






【目录】郭老二博文之:图像视频汇总




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:



版权声明:本文为u010168781原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。