mpv-player / mpv-build

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

Custom build can't load Lua scripts #228

Closed pjotrek-b closed 8 months ago

pjotrek-b commented 8 months ago

This is the 1st time I'm building my own mpv. I've followed the instructions on https://github.com/mpv-player/mpv-build.

Build is successful, but:

When I start mpv, it complains that a Lua script (perfectly working in v0.32) is now considered unknown:

Can't load unknown script: /home/user/.config/mpv/scripts/hires_port.lua

Is there anything I could put in mpv_option (or add a missing dependency) to make this work (again)? Thank you very much! :smile:

(OS= Xubuntu 20.04.6)

CounterPillow commented 8 months ago

You've built without Lua support, make sure either Lua5.1, Lua5.2 or Luajit (including the -dev packages) are installed at build time, then rebuild.

pjotrek-b commented 8 months ago

Thanks @CounterPillow! :partying_face: Indeed, this did the trick: sudo apt install liblua5.1-0-dev

I was surprised not to see any mention of Lua libs in the dependency list of the build instructions?