Browse Source

Merge pull request #425 from lbrunkho/patch-1

Add build instructions for Fedora systems.
Ian Walton 1 year ago
parent
commit
69d1b871fc
1 changed files with 48 additions and 1 deletions
  1. 48 1
      README.md

+ 48 - 1
README.md

@@ -19,8 +19,23 @@ Related Documents:
 
 ## Building at a glance (Linux)
 
+To download the latest stable release, get the lattest version tag from the [latest releases page](https://github.com/jellyfin/jellyfin-media-player/releases/latest) and append the following to your pull command during the build phase for JMP "--branch $VERSIONTAG --single-branch"
+
+Example:
+```bash
+git clone https://github.com/jellyfin/jellyfin-media-player.git --branch v1.9.1 --single-branch
+```
+
+
+### Ubuntu based systems
+
+Install dependancies:
 ```bash
 sudo apt install build-essential 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++ qtwebengine5-dev qtquickcontrols2-5-dev libqt5x11extras5-dev libcec-dev qml-module-qtquick-controls qml-module-qtwebengine qml-module-qtwebchannel qtbase5-private-dev curl unzip
+```
+
+Build commands for Ubuntu:
+```bash
 mkdir ~/jmp; cd ~/jmp
 git clone https://github.com/mpv-player/mpv-build.git
 cd mpv-build
@@ -42,6 +57,38 @@ sudo make install
 rm -rf ~/jmp/
 ```
 
+### Fedora based systems
+
+Install dependancies:
+```bash
+sudo dnf install autoconf automake libtool freetype-devel libXrandr-devel libvdpau-devel libva-devel  mesa-libGL-devel libdrm-devel libX11-devel  mesa-libEGL-devel yasm  alsa-lib pulseaudio-libs-devel zlib-devel fribidi-devel git gnutls-devel mesa-libGLU-devel  SDL2-devel cmake wget python g++  qt-devel libcec-devel qt5-qtbase-devel curl unzip qt5-qtwebchannel-devel qt5-qtwebengine-devel qt5-qtx11extras-devel mpv.x86_64 qwt-qt5-devel.x86_64 qt5-qtbase.x86_64 meson.noarch ninja-build.x86_64 qt5-qtbase-private-devel mpv-libs.x86_64
+```
+
+Build commands for Fedora:
+
+Note, the only real differences here is that libraries are in diffrent directories on Fedora systems.
+```bash
+mkdir ~/jmp; cd ~/jmp
+git clone https://github.com/mpv-player/mpv-build.git
+cd mpv-build/
+echo -Dlibmpv=true > mpv_options
+echo -Dpipewire=disabled >> mpv_options # hopefully temporary
+./rebuild -j4
+sudo ./install
+sudo mkdir /usr/local/lib/x86_64-linux-gnu
+sudo ln -s /usr/local/lib64/libmpv.so /usr/local/lib/x86_64-linux-gnu/libmpv.so.1
+sudo ln -s /usr/local/lib64/libmpv.so /usr/local/lib/x86_64-linux-gnu/libmpv.so
+sudo ldconfig
+cd ~/jmp/
+git clone https://github.com/jellyfin/jellyfin-media-player.git
+cd jellyfin-media-player/
+./download_webclient.sh 
+cd build/
+cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=/usr/local/ ..
+make -j4
+sudo make install
+```
+
 ## Building for Windows
 
 Please install:
@@ -142,4 +189,4 @@ You can enable experimental support for [Jellyscrub](https://github.com/nicknsy/
 
 ## Known Issues
 
-If you build MPV from source, you currently need to disable pipewire or else the client will segfault.
+If you build MPV from source, you currently need to disable pipewire or else the client will segfault.