Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Retrograde-i486 opened this issue Sep 1, 2023 · 2 comments

Comments

@Retrograde-i486
Copy link

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/

@iwalton3
Copy link
Owner

iwalton3 commented Sep 1, 2023

You have to use this now:

-Dlibmpv=true

@Retrograde-i486
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants