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

mpv build error #415

Open
WuJune opened this issue Sep 20, 2024 · 0 comments
Open

mpv build error #415

WuJune opened this issue Sep 20, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@WuJune
Copy link

WuJune commented Sep 20, 2024

Describe the bug
Error reported during mpv build following Linux Installation in jellyfin-mpv-shim on Linux

git clone https://github.com/mpv-player/mpv-build.git
cd mpv-build
echo --enable-libmpv-shared > mpv_options
./rebuild -j4
sudo ./install
sudo ldconfig

shows

meson: error: unrecognized arguments: --enable-libmpv-shared

To Reproduce

sudo pip3 install --upgrade python-mpv
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
git clone https://github.com/mpv-player/mpv-build.git
cd mpv-build
echo --enable-libmpv-shared > mpv_options
./rebuild -j4
sudo ./install
sudo ldconfig

Desktop (please complete the following information):

Error Messages

meson: error: unrecognized arguments: --enable-libmpv-shared

Solution
follow current mpv configure options in mpv-build

Building libmpv
You can enable building libmpv by enabling the configure option:

printf "%s\n" -Dlibmpv=true > mpv_options

Note that this will make the mpv-build scripts also enable PIC for all used libraries. For this reason, be sure to run ./clean before rebuilding.

The Debian packaging scripts do not currently support libmpv.

use printf "%s\n" -Dlibmpv=true > mpv_options instead of echo --enable-libmpv-shared > mpv_options

@WuJune WuJune added the bug Something isn't working label Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant