Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
OpenPHT compilation on Fedora
Obs.: tested on Fedora 24 ...
1. Clone OpenPHT:
git clone
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_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" \
-DPYTHON_EXEC='/usr/bin/python2' \
make -j3 ;
sudo make install
The binary is installed in /opt/plex/bin/openpht
Copy link

aairey 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