-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathPlex_Media_Player
22 lines (15 loc) · 1.01 KB
/
Plex_Media_Player
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#Download the source code from https://github.com/plexinc/plex-media-player/releases and put them on /usr/src/
wget -c https://github.com/plexinc/plex-media-player/archive/v2.12.1.871-6c71195e.tar.gz -P /usr/src/
# Install dependencies in order to compile this software
zypper in --no-confirm cmake ninja gcc gcc-c++ mpv mpv-devel libdrm-devel Mesa-libGL-devel libSDL2-devel libcec-devel libappstream-glib8 desktop-file-utils libqt5-qtbase-devel libqt5-qtdeclarative-devel libqt5-qtwebchannel-devel libqt5-qtwebengine-devel libqt5-qtx11extras-devel
#Extract the source code and change directory
cd /usr/src
tar xvf v2.12.1.871-6c71195e.tar.gz
cd plex-media-player-2.12.1.871-6c71195e
#Compile the project
mkdir build
cd build
#cmake -DCMAKE_BUILD_TYPE=Debug -DQTROOT=/ -DCMAKE_INSTALL_PREFIX=/usr/local/ ..
cmake -GNinja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DQTROOT=/usr/lib64/qt5 -DMPV_INCLUDE_DIR=/usr/include/mpv -DMPV_LIBRARY=/usr/lib64/libmpv.so.1 -DLINUX_DBUS=ON -DCMAKE_INSTALL_PREFIX=/usr ..
make -j4
sudo make install