plex-mpv-shim icon indicating copy to clipboard operation
plex-mpv-shim copied to clipboard

Can't build from source - meson: error unrecognized arguments: --enable-libmpv-shared

Open Retrograde-i486 opened this issue 1 year ago • 2 comments

Trying to build from source but install fails at the 6th step:

./rebuild -j4

With this error:

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

Found a mention that meson stopped accepting unknown arguments in v0.61 https://www.reddit.com/r/Gentoo/comments/ssxk5x/meson_build_failed_due_to_unknown_options/hxf0z28/

Retrograde-i486 avatar Sep 01 '23 00:09 Retrograde-i486

You have to use this now:

-Dlibmpv=true

iwalton3 avatar Sep 01 '23 01:09 iwalton3

Sorry to bump my old issue, used your suggestion and got plex-mpv-shim to build successfully this time. Can the instructions on the main project page be updated to this?

You can build mpv from source to get better codec support. Execute the following:

1). sudo pip3 install --upgrade python-mpv 2). sudo apt install autoconf automake libtool libharfbuzz-dev libfreetype6-dev libfontconfig1-dev libx11-dev libxrandr-dev libvdpau-dev libva-dev mesa-common-dev libegl1-mesa-dev yasm libasound2-dev libpulse-dev libuchardet-dev zlib1g-dev libfribidi-dev git libgnutls28-dev libgl1-mesa-dev libsdl2-dev cmake wget python g++ libluajit-5.1-dev 3). git clone https://github.com/mpv-player/mpv-build.git 4). cd mpv-build 5). echo -Dlibmpv=true > mpv_options 6). ./rebuild -j4 7). sudo ./install 8). sudo ldconfig

Retrograde-i486 avatar Feb 15 '24 21:02 Retrograde-i486