[x264-devel] x264 failed to make.

王庭茂 micromaomao at gmail.com
Fri Feb 20 05:11:14 CET 2015


Thank. This solved my problem.

2015-02-20 1:56 GMT+08:00 BugMaster <BugMaster at narod.ru>:

> 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"`.
>
> _______________________________________________
> x264-devel mailing list
> x264-devel at videolan.org
> https://mailman.videolan.org/listinfo/x264-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x264-devel/attachments/20150220/d086bc77/attachment.html>


More information about the x264-devel mailing list