Closed zhanshan closed 8 years ago
I want to mention that I meanwhile managed to run the latest version of mpv by using these Generic Instructions: https://github.com/mpv-player/mpv-build#generic-instructions
I can't reproduce in jessie or sid with mpv 0.9.2 or git master.
Why do you say it has to do with libwayland-egl1-mesa?
It's saying it can't find libEGL
which is in the libegl1-mesa
package. It should be located at /usr/lib/x86_64-linux-gnu/libEGL.so.1
or something similar if you have a different architecture.
Why do you say it has to do with libwayland-egl1-mesa?
Because that appears to be the only reason -lEGL
appears on mpv's linker command line. It probably comes from the .pc file of wayland-egl.
$ locate libEGL.so.1 /usr/lib/x86_64-linux-gnu/libEGL.so.1 /usr/lib32/libEGL.so.1
yep! But that didn't solve the problem.
Doesn't look like -lEGL comes in there:
$ cat /usr/lib/x86_64-linux-gnu/pkgconfig/wayland-egl.pc
prefix=/usr
exec_prefix=${prefix}
libdir=${prefix}/lib/x86_64-linux-gnu
includedir=${prefix}/include
Name: wayland-egl
Description: Mesa wayland-egl library
Version: 10.3.2
Requires: wayland-client
Libs: -L${libdir} -lwayland-egl
Cflags: -I${includedir}
Furthermore, with all the mpv deps installed (including libxkbcommon-dev) it only comes in from egl.pc itself, and nothing requires that:
$ grep -iR 'egl' /usr/lib/x86_64-linux-gnu/pkgconfig/
/usr/lib/x86_64-linux-gnu/pkgconfig/egl.pc:Name: egl
/usr/lib/x86_64-linux-gnu/pkgconfig/egl.pc:Description: Mesa EGL library
/usr/lib/x86_64-linux-gnu/pkgconfig/egl.pc:Libs: -L${libdir} -lEGL
/usr/lib/x86_64-linux-gnu/pkgconfig/wayland-egl.pc:Name: wayland-egl
/usr/lib/x86_64-linux-gnu/pkgconfig/wayland-egl.pc:Description: Mesa wayland-egl library
/usr/lib/x86_64-linux-gnu/pkgconfig/wayland-egl.pc:Libs: -L${libdir} -lwayland-egl
/usr/lib/x86_64-linux-gnu/pkgconfig/libva-egl.pc:display=egl
a) acutally result in Checking for Wayland : no
?
b) fix the problem?
What is the reason for the dep on libegl1-mesa-dev in mpv-build? (debian
What is the reason for the dep on libegl1-mesa-dev in mpv-build? (debian
It was copied from the official debian pacakge where it is required for wayland support. I've removed it until I can add all the necessary packages to actually enable wayland (i.e., after Jessie has been out a little longer and I no longer support Wheezy).
In any case, that shouldn't actually have any bearing on this problem since having it as a build-dep was only installing the package, not adding any flags to the mpv build.
libegl1-mesa-dev has been added back as mpv now uses the egl backend by default on x11.
reopen if there is still a problem
same problem while building MPV 0.29.0 in "Debian Stretch", I fixed creating a symlink to the file /usr/lib/x86_64-linux-gnu/libEGL.so.1.1.0
ln -s /usr/lib/x86_64-linux-gnu/libEGL.so.1.1.0 /usr/lib/x86_64-linux-gnu/libEGL.so ln -s /usr/lib/x86_64-linux-gnu/libEGL.so.1.1.0 /usr/lib/libEGL.so
The problem seems to have to do with 'libwayland-egl1-mesa', see:
full output: