Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
OpenPHT compilation on Fedora
Obs.: tested on Fedora 24 ...
1. Clone OpenPHT:
git clone https://github.com/RasPlex/OpenPHT.git
2. Install build dependencies:
sudo dnf install freetype-devel SDL-devel SDL_image-devel libjpeg-turbo-devel sqlite-devel curl-devel lzo-devel tinyxml-devel fribidi-devel fontconfig-devel yajl-devel libmicrohttpd-devel openssl-devel glew-devel avahi-devel flac-devel ffmpeg-devel python-devel libtiff-devel libvorbis-devel libmpeg2-devel libass-devel librtmp-devel libplist-devel shairplay-devel libva-devel libvdpau-devel libcec-devel swig boost-devel libusb-devel systemd-devel nasm libmodplug-devel libcdio-devel -y
3. Build:
mkdir build ;
cd build ;
cmake .. \
-DCMAKE_BUILD_TYPE=RELEASE \
-DCMAKE_INSTALL_PREFIX='/opt/plex' \
-DCMAKE_C_FLAGS="$CMAKE_C_FLAGS -O2 -mtune=generic -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include" \
-DCMAKE_CXX_FLAGS="$CMAKE_CXX_FLAGS -O2 -mtune=generic -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include" \
-DCREATE_BUNDLE='TRUE' \
-DDUMP_SYMBOLS='FALSE' \
-DENABLE_AUTOUPDATE='FALSE' \
-DENABLE_PYTHON='TRUE' \
-DPYTHON_EXEC='/usr/bin/python2' \
-DUSE_INTERNAL_FFMPEG='TRUE' \
-DCMAKE_VERBOSE_MAKEFILE='FALSE'
make -j3 ;
sudo make install
--------
The binary is installed in /opt/plex/bin/openpht
@aairey

This comment has been minimized.

Copy link

commented Apr 3, 2017

DNF command needs --enablerepo=rpmfusion-free on Fedora 25 for the packages:

  • ffmpeg-devel
  • libmpeg2-devel
  • librtmp-devel

Thanks for this gist!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.