shinchiro/mpv-winbuild-cmake

Request: Dynamically link Lua

zachary-t opened this issue · 2 comments

Dynamically linking the Lua library would allow the loading of Lua modules written in C, which is not possible (or maybe just incredibly difficult; I was unable to manage it after much effort) with a statically linked Lua. Enabling C modules would allow users to extend mpv's functionality with virtually no limitations. For example, a C module could give mpv access to API calls over a network to create "watch together" functionality. This is already possible with Linux builds, as well as self-built mpv on Windows (tested and verified to work with C modules), but is impossible with these builds due to the statically linked Lua.

It looks like C plugin support on Windows has been somewhat improved since I last looked into this. I still don't fully understand why dynamically linking Lua would lead to issues, but I trust you know best, and with C plugins supported it's a bit of a moot point. Even if C plugins don't work on Windows (it looks like there still might be problems), loading them via Lua probably isn't the solution.

Lord have mercy, the scoop package is three versions behind. Plugins work fine with manual install.
Thanks for the help.