[MPlayer-users] MPlayer fails to build (on Ubuntu 14.04 LTS)

Erik Auerswald auerswal at unix-ag.uni-kl.de
Tue Feb 14 12:55:18 EET 2017


Hi,

On Tue, Feb 14, 2017 at 11:18:45AM +0100, Erik Auerswald wrote:
> On Tue, Feb 14, 2017 at 10:42:26AM +0100, Erik Auerswald wrote:
> > On Tue, Feb 14, 2017 at 12:01:26AM +0100, Alexander Strasser wrote:
> > > On 2017-02-13 09:59 +0100, Erik Auerswald wrote:
> > > > I tried to build current MPlayer, but the build failed with the following
> > > > error:
> > > > [...]
> > > > libavcodec/vaapi_encode_vp8.c:20:27: fatal error: va/va_enc_vp8.h: No such file or directory
> > > >  #include <va/va_enc_vp8.h>
> > > >                            ^
> > > > compilation terminated.
> > > > [...]
> > > 
> > >   Hopefully fixed with SVN r37924
> > 
> > Thanks, the build now fails with:
> > 
> > libavutil/cpu.c:20:23: fatal error: stdatomic.h: No such file or directory
> >  #include <stdatomic.h>
> >                        ^
> > compilation terminated.
> 
> Hm, I think to remember that a newer compiler (a complete GCC 4.9, not
> gcc-4.9-base) works around this issue on Ubuntu 14.04 LTS. IIRC there is a
> backport of GCC 4.9 available for my distro.

Installing GCC 4.9 according to the instructions given at
http://askubuntu.com/questions/466651/how-do-i-use-the-latest-gcc-on-ubuntu#581497
got me over that problem, but linking MPlayer fails with undefined symbols
in the Opus encoder:

ffmpeg/libavcodec/libavcodec.a(opusenc.o): In function `opus_encode_end':
opusenc.c:(.text.unlikely+0x46): undefined reference to `ff_mdct15_uninit'
opusenc.c:(.text.unlikely+0x50): undefined reference to `ff_mdct15_uninit'
opusenc.c:(.text.unlikely+0x5a): undefined reference to `ff_mdct15_uninit'
opusenc.c:(.text.unlikely+0x64): undefined reference to `ff_mdct15_uninit'
ffmpeg/libavcodec/libavcodec.a(opusenc.o): In function `opus_encode_init':
opusenc.c:(.text.unlikely+0x2c9): undefined reference to `ff_mdct15_init'
ffmpeg/libavcodec/libavcodec.a(aacdec.o): In function `aac_decode_close':
aacdec.c:(.text.unlikely+0x96): undefined reference to `ff_mdct15_uninit'
ffmpeg/libavcodec/libavcodec.a(aacdec.o): In function `aac_decode_init':
aacdec.c:(.text.unlikely+0x8e1): undefined reference to `ff_mdct15_init'
ffmpeg/libavcodec/libavcodec.a(opus_celt.o): In function `ff_celt_free':
opus_celt.c:(.text+0x3086): undefined reference to `ff_mdct15_uninit'
opus_celt.c:(.text+0x308f): undefined reference to `ff_mdct15_uninit'
opus_celt.c:(.text+0x3098): undefined reference to `ff_mdct15_uninit'
opus_celt.c:(.text+0x30a1): undefined reference to `ff_mdct15_uninit'
ffmpeg/libavcodec/libavcodec.a(opus_celt.o): In function `ff_celt_init':
opus_celt.c:(.text+0x312c): undefined reference to `ff_mdct15_init'
opus_celt.c:(.text+0x327f): undefined reference to `ff_mdct15_uninit'
opus_celt.c:(.text+0x3288): undefined reference to `ff_mdct15_uninit'
opus_celt.c:(.text+0x3291): undefined reference to `ff_mdct15_uninit'
opus_celt.c:(.text+0x329a): undefined reference to `ff_mdct15_uninit'
collect2: error: ld returned 1 exit status
make: *** [mplayer] Error 1

Thanks,
Erik
-- 
Bugs are like mushrooms - found one, look around for more...
                        -- Al Viro


More information about the MPlayer-users mailing list