Quote:
Originally Posted by ponce
you can avoid building mpv with lua as you can use for the scope also luajit (that you can build and install regardless of any other version of lua installed in the system).
|
If you build mpv without Lua it won't enable some features, like statistics about the currently playing file (when pressing 'i'), for instance. Not to mention the support to users scripts. So I guess it's not an option. And there's a reason why mpv won't support newer Lua versions:
https://github.com/mpv-player/mpv/wi...ua-53-or-newer
I noticed that in Lua Makefile there's this parameter -DLUA_COMPAT_5_3, so I wondered if adding -DLUA_COMPAT_5_2 and -DLUA_COMPAT_5_1 would fix mpv complaining about Lua being too new, but the build process complained anyway, so I tried to remove the checking and compiled again, then an error in a check during runtime, which I removed and recompiled mpv, but then it gives me this runtime error:
Code:
[osc]
[osc] stack traceback:
[osc] [C]: in function 'mp.input_set_section_mouse_area'
[osc] mp.defaults:133: in function 'mp.set_mouse_area'
[osc] @osc.lua:191: in function 'set_virt_mouse_area'
[osc] @osc.lua:2943: in main chunk
[osc] [C]: in ?
[osc] [C]: in function 'require'
[osc] [string "require '@osc.lua'"]:1: in main chunk
[osc] [C]: in ?
[osc] [C]: in ?
[osc] Lua error: mp.defaults:133: bad argument #2 to 'input_set_section_mouse_area' (number has no integer representation)
This issue will affect basically all Linux users (not just Slackware) who have mpv and the recent rpm 4.18.1 package.
EDIT: I wasn't expect that but
USUARIONUEVO is right: by just installing luajit we can have mpv building/running even when newer lua (e.g. 5.4.6) is present.