报错如下:
//usr/local/lib/libavformat.a(allformats.o): In function `register_all':
/home/ffmpeg/ffmpeg-3.4.5/libavformat/allformats.c:47: undefined reference to `avcodec_register_all'
//usr/local/lib/libavformat.a(allformats.o): In function `av_register_all':
/home/ffmpeg/ffmpeg-3.4.5/libavformat/allformats.c:394: undefined reference to `pthread_once'
//usr/local/lib/libavformat.a(amr.o): In function `amr_read_packet':
/home/ffmpeg/ffmpeg-3.4.5/libavformat/amr.c:142: undefined reference to `av_new_packet'
/home/ffmpeg/ffmpeg-3.4.5/libavformat/amr.c:158: undefined reference to `av_packet_unref'
//usr/local/lib/libavformat.a(anm.o): In function `read_header':
/home/ffmpeg/ffmpeg-3.4.5/libavformat/anm.c:136: undefined reference to `av_mallocz'
/home/ffmpeg/ffmpeg-3.4.5/libavformat/anm.c:166: undefined reference to `avpriv_request_sample'
/home/ffmpeg/ffmpeg-3.4.5/libavformat/anm.c:88: undefined reference to `avpriv_request_sample'
//usr/local/lib/libavformat.a(ape.o): In function `ape_read_close':
/home/ffmpeg/ffmpeg-3.4.5/libavformat/ape.c:439: undefined reference to `av_freep'
/home/ffmpeg/ffmpeg-3.4.5/libavformat/ape.c:440: undefined reference to `av_freep'
/home/ffmpeg/ffmpeg-3.4.5/libavformat/ape.c:441: undefined reference to `av_freep'
//usr/local/lib/libavformat.a(ape.o): In function `ape_read_packet':
/home/ffmpeg/ffmpeg-3.4.5/libavformat/ape.c:412: undefined reference to `av_new_packet'
/home/ffmpeg/ffmpeg-3.4.5/libavformat/ape.c:406: undefined reference to `av_log'
/home/ffmpeg/ffmpeg-3.4.5/libavformat/ape.c:419: undefined reference to `av_packet_unref'