Discussion:
[MPlayer-users] MPlayer fails to build (on Ubuntu 14.04 LTS)
Erik Auerswald
2017-02-13 08:59:51 UTC
Permalink
Hi,

I tried to build current MPlayer, but the build failed with the following
error:

------------------------------------8<-------------------------------------

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.
make[1]: *** [libavcodec/vaapi_encode_vp8.o] Error 1
make[1]: Leaving directory `/home/auerswald/Software/mplayer/ffmpeg'
make: *** [ffmpeg/libavcodec/libavcodec.a] Error 2

------------------------------------8<-------------------------------------

Perhaps a configure check for the needed header file could be added?

I used the following command line to start the build:

svn up && make distclean && ./configure && make

Thanks,
Erik
--
Inside every large problem is a small problem struggling to get out.
-- Hoare's Law of Large Problems
Alexander Strasser
2017-02-13 23:01:26 UTC
Permalink
Hi!
Post by Erik Auerswald
I tried to build current MPlayer, but the build failed with the following
------------------------------------8<-------------------------------------
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.
make[1]: *** [libavcodec/vaapi_encode_vp8.o] Error 1
make[1]: Leaving directory `/home/auerswald/Software/mplayer/ffmpeg'
make: *** [ffmpeg/libavcodec/libavcodec.a] Error 2
------------------------------------8<-------------------------------------
Perhaps a configure check for the needed header file could be added?
svn up && make distclean && ./configure && make
Hopefully fixed with SVN r37924

Thanks for the report,
Alexander
Erik Auerswald
2017-02-14 09:42:26 UTC
Permalink
Hi,
Post by Alexander Strasser
Post by Erik Auerswald
I tried to build current MPlayer, but the build failed with the following
------------------------------------8<-------------------------------------
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.
make[1]: *** [libavcodec/vaapi_encode_vp8.o] Error 1
make[1]: Leaving directory `/home/auerswald/Software/mplayer/ffmpeg'
make: *** [ffmpeg/libavcodec/libavcodec.a] Error 2
------------------------------------8<-------------------------------------
Perhaps a configure check for the needed header file could be added?
svn up && make distclean && ./configure && make
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.
make[1]: *** [libavutil/cpu.o] Error 1
make[1]: Leaving directory `/home/auerswald/Software/mplayer/ffmpeg'
make: *** [ffmpeg/libavutil/libavutil.a] Error 2

Directly above I see warnings for undefined constants
HAVE_ATOMIC_COMPARE_EXCHANGE, HAVE_ATOMICS_WIN32 and HAVE_ATOMICS_SUNCC
(just the atmics related stuff, as always there is a multitude of ffmpeg
configuration constants not defined by MPlayer).

nks,
Erik
--
[M]ost parts of this industry just work by chance.
-- Thomas Gleixner
Erik Auerswald
2017-02-14 10:18:45 UTC
Permalink
Hi,
Post by Erik Auerswald
Hi,
Post by Alexander Strasser
Post by Erik Auerswald
I tried to build current MPlayer, but the build failed with the following
[...]
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
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.

Thanks,
Erik
--
Reality is that which, when you stop believing in it, doesn't go away.
-- Philip K. Dick
Erik Auerswald
2017-02-14 10:55:18 UTC
Permalink
Hi,
Post by Erik Auerswald
Post by Erik Auerswald
Post by Alexander Strasser
Post by Erik Auerswald
I tried to build current MPlayer, but the build failed with the following
[...]
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
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
Alexander Strasser
2017-02-14 22:51:28 UTC
Permalink
Hi!

On 2017-02-14 11:55 +0100, Erik Auerswald wrote:
[...]
Post by Erik Auerswald
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
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'
opusenc.c:(.text.unlikely+0x2c9): undefined reference to `ff_mdct15_init'
aacdec.c:(.text.unlikely+0x96): undefined reference to `ff_mdct15_uninit'
aacdec.c:(.text.unlikely+0x8e1): undefined reference to `ff_mdct15_init'
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'
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
Should be fixed with SVN revision 37925 .

I hope building works for you now.


Alexander
Erik Auerswald
2017-02-15 10:52:46 UTC
Permalink
Hi,
Post by Alexander Strasser
[...]
Post by Erik Auerswald
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
[...]
collect2: error: ld returned 1 exit status
make: *** [mplayer] Error 1
Should be fixed with SVN revision 37925 .
I hope building works for you now.
Yes, MPlayer compiles and the resulting binary works. :-)

Thanks,
Erik
--
A distributed system is one in which the failure of a computer you didn't
even know existed can render your own computer unusable.
-- Leslie Lamport
Alexander Strasser
2017-02-14 21:08:00 UTC
Permalink
Hi!
Post by Erik Auerswald
Post by Erik Auerswald
Post by Alexander Strasser
Post by Erik Auerswald
I tried to build current MPlayer, but the build failed with the following
[...]
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
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.
This is Trac ticket #2312:

https://trac.mplayerhq.hu/ticket/2312

I am looking into it.


Alexander
Loading...