ffmpeg:libavformat/http.c:1435: error: undefined reference to 'inflateEnd'

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/liuzehn/article/details/83152554

安卓动态库编译过程中遇到了一个ffmpeg相关的报错,具体信息如下:

libavformat/http.c:1435: error: undefined reference to 'inflateEnd'
libavformat/http.c:626: error: undefined reference to 'inflateEnd'
libavformat/http.c:627: error: undefined reference to 'inflateInit2_'
libavformat/http.c:632: error: undefined reference to 'zlibCompileFlags'
libavformat/http.c:1238: error: undefined reference to 'inflate'
libavformat/id3v2.c:963: error: undefined reference to 'uncompress'
libavformat/mov.c:3818: error: undefined reference to 'uncompress'
libavformat/rtmpproto.c:1077: error: undefined reference to 'inflateInit_'
libavformat/rtmpproto.c:1087: error: undefined reference to 'inflate'
libavformat/rtmpproto.c:1105: error: undefined reference to 'inflateEnd'
collect2: error: ld returned 1 exit status

解决:

添加链接库zlib,编译选项中加上 :-lz

猜你喜欢

转载自blog.csdn.net/liuzehn/article/details/83152554