本文主要是介绍【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:
这篇关于【ffmpeg】编译时报错:error: undefined reference to `av...的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!