mirror of
https://github.com/jellyfin/jellyfin-media-player.git
synced 2024-11-23 05:59:43 +00:00
Add build instructions for Fedora systems.
Added build instructions that I wrote in #343. I have been testing this over the past couple months and they have been working for me. Added instructions at the beginning of the build commands for Linux on downloading the latest release tag instead of just pulling the main branch as this should make for more consistent builds.
This commit is contained in:
parent
086fd6a521
commit
2fdd3efc65
49
README.md
49
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.
|
||||
|
Loading…
Reference in New Issue
Block a user