Jellyfin Desktop Client
Go to file
2015-11-09 15:15:10 +01:00
bundle Add a .bat to start with --disable-gpu on Windows 2015-10-27 09:53:19 +01:00
CMakeModules Fix symbols on OSX 2015-11-09 15:14:51 +01:00
external Initial public commit of Plex Media Player 2015-10-13 11:05:27 +02:00
qt-patches Added Qt patch for retina mac redraw issues. 2015-11-03 17:30:10 +01:00
release-notes Final tweak of release notes. 2015-10-28 09:27:58 +01:00
resources Expose audio drop/duplicate display sync mode 2015-11-04 17:20:38 +01:00
scripts Don't disable cmake dump_syms on windows 2015-11-09 15:15:10 +01:00
src Remove LFE from downmixing 2015-11-09 13:01:00 +01:00
vagrant Initial public commit of Plex Media Player 2015-10-13 11:05:27 +02:00
.clang-format Initial public commit of Plex Media Player 2015-10-13 11:05:27 +02:00
.gitignore Initial public commit of Plex Media Player 2015-10-13 11:05:27 +02:00
.gitmodules Initial public commit of Plex Media Player 2015-10-13 11:05:27 +02:00
BuildQT5-windows.md Initial public commit of Plex Media Player 2015-10-13 11:05:27 +02:00
CMakeLists.txt Bump required CMake version to 3.1.0. 2015-10-26 08:16:31 +01:00
LICENSE License under GPLv2 2015-10-13 11:06:01 +02:00
README.md Bump required CMake version to 3.1.0. 2015-10-26 08:16:31 +01:00

Building

You need:

  • Qt 5.6 alpha
  • cmake 3.1 or newer
  • ninja is recommended for building

Special Qt requirements:

  • On Windows, you must apply qt-patches/0003-Always-enable-viewport-stuff.patch for correct window scaling. The patches in qt-patches/qt-5.6-alpha/ fix some stability issues.

  • On OSX, you should apply qt-patches/0002-qtbase-Don-t-show-the-menu-bar-at-all-in-lion-style-fullscr.patch to improve the user experience in fullscreen.

  • You can try to use Qt 5.5, but then you also need to apply the following patches:

    • qt-patches/0001-qtwebengine-Add-a-backgroundColor-property.patch
    • qt-patches/0004-qtwebengine-transparency-window-creation.patch

    Without them, video playback will not work.

Building on Mac OS X

Get dependencies:

  • scripts/fetch-binaries.py -p darwin-x86_64

If you're happy just building from the command line then run CMake for the ninja build tool:

  • mkdir build ; cd build
  • cmake -GNinja -DCMAKE_BUILD_TYPE=Debug -DQTROOT=/path/to/qt -DCMAKE_INSTALL_PREFIX=output ..

Build (ninja):

  • ninja

Make a distributable package:

  • ninja install (be patient, it's slow)

Or if you prefer working in Xcode, run CMake for the xcode build):

  • mkdir build ; cd build
  • cmake -GXcode -DQTROOT=/path/to/qt ..

Building on Linux

Building Qt 5.6.0 alpha

You'll want to grab one of the Qt 5.6.0 alpha packages from http://download.qt.io/development_releases/qt/5.6/5.6.0-alpha/single/ and unpack it locally. On Fedora, even with a working development environment set up, the following packages were necessary to successfully build Qt (and QtWebEngine):

sudo dnf install libxcb libxcb-devel libXrender libXrender-devel xcb-util-wm xcb-util-wm-devel xcb-util xcb-util-devel xcb-util-image xcb-util-image-devel xcb-util-keysyms xcb-util-keysyms-devel libcap-devel snappy-devel libsrtp-devel nss-devel pciutils-devel gperf

(The majority of the packages on this list came from http://code.qt.io/cgit/qt/qtbase.git/tree/src/plugins/platforms/xcb/README, but everything after xcb-util-keysyms-devel was trial-and-error in attempts build QtWebEngine; this list of packages may not be complete, but hopefully it provides a useful starting point.)

Once you've unpacked the Qt 5.6.0 alpha package:

  • cd qt-everywhere-opensource-src-5.6.0-alpha
  • ./configure -confirm-license -opensource
  • make
  • sudo make install
  • cd qtwebengine
  • qmake
  • make
  • sudo make install

That should do it for Qt. It's worth noting that, on a Core i7-950 with 24GB of RAM, this took more than three hours to build.

Building mpv

mpv is a bit easier to build than Qt, and compiles much faster.

Before you attempt to build mpv, make sure you have either ffmpeg 2.4.0 (and related development packages) or libav11 (and related devel packages) installed.

  • git clone git://github.com/mpv-player/mpv
  • cd mpv
  • ./bootstrap.py
  • ./waf configure --enable-libmpv-shared
  • ./waf build
  • sudo ./waf install

Finally! Building plex-media-player

Assuming that everything else has installed correctly, building Plex Media Player should now be fairly straightforward:

  • git clone git://github.com/plexinc/plex-media-player
  • cd plex-media-player
  • mkdir build
  • cd build
  • cmake -GNinja -DCMAKE_BUILD_TYPE=Debug -DQTROOT=/usr/local/Qt-5.6.0 -DMPV_INCLUDE_DIR=/usr/local/include/mpv -DMPV_LIBRARY=/usr/local/lib/libmpv.so.1 -DCMAKE_INSTALL_PREFIX=output ..
  • ninja-build

Once ninja-build completes successfully, you should have a usable ./src/plexmediaplayer binary. Run it and test it out! If it works as you expect, you should be able to run sudo install ./src/plexmediaplayer ./src/pmphelper /usr/local/bin so that the program is usable from anywhere on the system.

License

Plex Media Player is licensed under GPL v2. See the LICENSE file. Licenses of dependencies are summarized under resources/misc/licenses.txt. This file can also be printed at runtime when using the --licenses option.