[x264-devel] x264 failed to make.

BugMaster BugMaster at narod.ru
Thu Feb 19 18:56:47 CET 2015


On Thu, 19 Feb 2015 16:10:37 +0800, 王庭茂 wrote:
> When I finish ./configureand run make, I get the following errors:

>     /usr/local/lib/libavcodec.a(opusdec.o): In function `opus_decode_subpacket':
>     /root/ffmpeg-2.5.4/libavcodec/opusdec.c:376: undefined reference to `swr_is_initialized'
>     /usr/local/lib/libavcodec.a(opusdec.o): In function `opus_decode_frame':
>     /root/ffmpeg-2.5.4/libavcodec/opusdec.c:222: undefined reference to `swr_is_initialized'
>     /usr/local/lib/libavcodec.a(opusdec.o): In function `opus_init_resample':
>     /root/ffmpeg-2.5.4/libavcodec/opusdec.c:163: undefined reference to `swr_init'
>     /root/ffmpeg-2.5.4/libavcodec/opusdec.c:169: undefined reference to `swr_convert'
>     /usr/local/lib/libavcodec.a(opusdec.o): In function `opus_decode_frame':
>     /root/ffmpeg-2.5.4/libavcodec/opusdec.c:236: undefined reference to `swr_convert'
>     /usr/local/lib/libavcodec.a(opusdec.o): In function `opus_flush_resample':
>     /root/ffmpeg-2.5.4/libavcodec/opusdec.c:117: undefined reference to `swr_convert'
>     /usr/local/lib/libavcodec.a(opusdec.o): In function `opus_decode_subpacket':
>     /root/ffmpeg-2.5.4/libavcodec/opusdec.c:408: undefined reference to `swr_close'
>     /usr/local/lib/libavcodec.a(opusdec.o): In function `opus_decode_flush':
>     /root/ffmpeg-2.5.4/libavcodec/opusdec.c:563: undefined reference to `swr_close'
>     /usr/local/lib/libavcodec.a(opusdec.o): In function `opus_decode_close':
>     /root/ffmpeg-2.5.4/libavcodec/opusdec.c:585: undefined reference to `swr_free'
>     /usr/local/lib/libavcodec.a(opusdec.o): In function `opus_decode_init':
>     /root/ffmpeg-2.5.4/libavcodec/opusdec.c:638: undefined reference to `swr_alloc'
>     /usr/local/lib/libavcodec.a(tiff.o): In function `tiff_uncompress_lzma':
>     /root/ffmpeg-2.5.4/libavcodec/tiff.c:396: undefined reference to `lzma_stream_decoder'
>     /root/ffmpeg-2.5.4/libavcodec/tiff.c:401: undefined reference to `lzma_code'
>     /root/ffmpeg-2.5.4/libavcodec/tiff.c:402: undefined reference to `lzma_end'
>     collect2: error: ld returned 1 exit status

> Need for help!

Hi. That is libavcodec not found dependencies. Most probably this
happened because configure not found pkg-config for libavcodec and
tried too use most basic library setup without extra dependencies.
If you don't really need lavf input support than you configure with
--disable-lavf option. If lavf is need than you have few options:
1) fix pkg-config setup so configure will find out all dependencies;
2) build ffmpeg (libavcodec) without external dependencies;
3) add external dependencies manually with configure --extra-ldflags
option e.g. `./configure --extra-ldflags="-lswresample -llzma"`.



More information about the x264-devel mailing list