mpv-player / mpv-build

🔨 Helper scripts to compile mpv on Linux
http://mpv.io
414 stars 108 forks source link

rebuild error -- libplacebo/context.h: No such file or directory #197

Closed mikemulhearn closed 1 year ago

mikemulhearn commented 2 years ago

I'm having trouble trying to build mpv. I am attempting to build on Raspbian (Bullseye).

Linux travelflix 5.15.61-v8+ #1579 SMP PREEMPT Fri Aug 26 11:16:44 BST 2022 aarch64 GNU/Linux
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"

I keep receiving the following error during the rebuild step:

[ 43/233] Compiling osdep/polldev.c
[ 44/233] Compiling osdep/timer-linux.c
[ 45/233] Compiling video/out/placebo/ra_pl.c
[ 46/233] Compiling osdep/threads.c
[ 47/233] Compiling video/out/libmpv_sw.c
In file included from ../video/out/placebo/ra_pl.c:4:
../video/out/placebo/ra_pl.h:6:38: warning: 'struct pl_gpu' declared inside parameter list will not be visible outside of this definition or declaration
    6 | struct ra *ra_create_pl(const struct pl_gpu *gpu, struct mp_log *log);
      |                                      ^~~~~~
../video/out/placebo/ra_pl.h:16:48: warning: 'struct pl_tex' declared inside parameter list will not be visible outside of this definition or declaration
   16 | bool mppl_wrap_tex(struct ra *ra, const struct pl_tex *pltex,
      |                                                ^~~~~~
In file included from ../video/out/placebo/ra_pl.c:5:
../video/out/placebo/utils.h:7:10: fatal error: libplacebo/context.h: No such file or directory
    7 | #include <libplacebo/context.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

Waf: Leaving directory '/home/mike/mpv-build/mpv/build'
Build failed
 -> task in 'mpv' failed with exit status 1 (run with -v to display more information)

I also attempted to build using meson too, but I receive a different error when attempting that:

INSTALL ffplay
INSTALL ffprobe
make: Leaving directory '/home/mike/mpv-build/ffmpeg_build'
Using mpv options: --enable-libmpv-shared --disable-cplayer
usage: meson [-h] {setup,configure,dist,install,introspect,init,test,wrap,subprojects,rewrite,compile,devenv,env2mfile,help} ...
meson: error: unrecognized arguments: --enable-libmpv-shared --disable-cplayer

Any ideas on how I can fix this so I can build mpv?

reganheath commented 2 years ago

I have exactly the same issues on a rpi4, also Bullseye

Linux raspberrypi 5.10.63-v7l+ #1459 SMP Wed Oct 6 16:41:57 BST 2021 armv7l GNU/Linux

Dudemanguy commented 1 year ago

This was just an upstream change in libplacebo that required a change in mpv to build. It was fixed in this commit: https://github.com/mpv-player/mpv/commit/70fa9502f35014db5e6989af2947f5b61d4a7cf1.