jellyfin-media-player
jellyfin-media-player copied to clipboard
MPV not found on ubuntu 23.04 lunar
Describe the bug When building, fails on FindMPV:
CMake Error at /usr/share/cmake-3.25/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find MPV (missing: MPV_INCLUDE_DIR MPV_LIBRARY)
Call Stack (most recent call first):
/usr/share/cmake-3.25/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)
CMakeModules/FindMPV.cmake:76 (find_package_handle_standard_args)
CMakeModules/PlayerConfiguration.cmake:14 (find_package)
CMakeLists.txt:52 (include)
To Reproduce Steps to reproduce the behavior:
- Be on ubuntu 23.04 lunar
- compile
Expected behavior No error and compile
Desktop (please complete the following information): Distributor ID: Ubuntu Description: Ubuntu 23.04 Release: 23.04 Codename: lunar
Additional context libmpv2 is already the newest version (0.35.1-2ubuntu1).
sudo apt install libmpv-dev
I have the same error in Lunar.
installation of libmpv-dev
did not work
I also have problems with MPV on ubuntu 23.04 lunar. As a workaround, I tried installing the jellyfin-media-player_1.9.1-1_amd64-kinetic.deb
package from Github. This doesn't run initially because libmpv.so.1 can't be found (error while loading shared libraries: libmpv.so.1: cannot open shared object file: No such file or directory
). I tried using the existing libmpv.so
file instead (ln -s /usr/lib/x86_64-linux-gnu/libmpv.so /usr/lib/x86_64-linux-gnu/libmpv.so.1
), but that leads to a crash when starting the program. The logfile reads:
2023-08-30 08:27:55.922 [critical] unknown @ 0 - LIRC Socket Error : QLocalSocket::ServerNotFoundError
2023-08-30 08:27:56.059 [critical] unknown @ 0 - Slot for host command missing, or has incorrect signature!
2023-08-30 08:27:56.440 [critical] unknown @ 0 - cplayer: Option af-defaults: lavrresample doesn't exist.
[... removed some 'debug' only statements that seem very unrelated ...]
2023-08-30 08:27:56.573 [critical] unknown @ 0 - libmpv_render: Can't load OpenGL functions.
2023-08-30 08:27:56.573 [critical] unknown @ 0 - libmpv_render: OpenGL not initialized.
2023-08-30 08:27:56.573 [critical] unknown @ 0 - libmpv_render: Can't load OpenGL functions.
2023-08-30 08:27:56.573 [critical] unknown @ 0 - libmpv_render: OpenGL not initialized.
2023-08-30 08:27:56.582 [warning] unknown @ 0 - Qt has caught an exception thrown from an event handler. Throwing
exceptions from an event handler is not supported in Qt.
You must not let any exception whatsoever propagate through Qt code.
If that is not possible, in Qt 5 you must at least reimplement
QCoreApplication::notify() and catch all exceptions there.
It would be great if a deb for Ubuntu lunar could be provided for the next release :)
I next tried to install the community-provided snap-package from https://snapcraft.io/install/jellyfinmediaplayer/ubuntu , but this didn't not work out, either:
/snap/bin/jellyfinmediaplayer
Qt: Session management error: Could not open network socket
libpng warning: iCCP: known incorrect sRGB profile
Listening to socket: "/tmp/jmp_pmpUniqueApplication_family.sock"
Signal handlers installed successfully.
Logging to /home/family/snap/jellyfinmediaplayer/24/.local/share/jellyfinmediaplayer/logs/jellyfinmediaplayer.log
[1964814:1964935:0830/085235.143007:ERROR:zygote_host_impl_linux.cc(263)] Failed to adjust OOM score of renderer with pid 1964936: Permission denied (13)
Segmentation fault
Attached is the full logfile. jellyfinmediaplayer.log
Just make a symlink to libmpv.0.2 - worked for me..
sudo ln -s /usr/lib/x86_64-linux-gnu/libmpv.so.1 /usr/lib/x86_64-linux-gnu/libmpv.so.2
symlink works well
My error was jellyfinmediaplayer: error while loading shared libraries: libmpv.so.1: cannot open shared object file: No such file or directory
So my fix was $ sudo ln -s /usr/lib/x86_64-linux-gnu/libmpv.so.2 /usr/lib/x86_64-linux-gnu/libmpv.so.1
I am on Ubuntu 23.04 and installed the 22.04 jellyfin package from github release.