Linux Build

As I said, you just follow the steps from https://projects.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/plex-home-theater

It is mainly about

cmake …
-DCMAKE_INSTALL_PREFIX=’/usr’
-DCMAKE_C_FLAGS="$CMAKE_C_FLAGS -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include"
-DCMAKE_CXX_FLAGS="$CMAKE_CXX_FLAGS -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include"
-DCREATE_BUNDLE=‘FALSE’
-DDUMP_SYMBOLS=‘FALSE’
-DENABLE_AUTOUPDATE=‘FALSE’
-DENABLE_PYTHON=‘TRUE’
-DPYTHON_EXEC=’/usr/bin/python2’
-DUSE_INTERNAL_FFMPEG=‘FALSE’
make

and then

make DESTDIR="${pkgdir}" install
install -dm 755 “${pkgdir}”/usr/{lib/plexhometheater,share/{applications,pixmaps}}
mv “${pkgdir}”/usr/bin/{system,xbmc-xrandr} “${pkgdir}”/usr/lib/plexhometheater/
mv “${pkgdir}”/usr/share/XBMC “${pkgdir}”/usr/share/plexhometheater
rm -rf “${pkgdir}”/usr/bin/*.so
install -m 755 “${srcdir}”/plexhometheater.sh “${pkgdir}”/usr/bin/
install -m 644 …/plex/Resources/plexhometheater.desktop “${pkgdir}”/usr/share/applications/
install -m 644 …/plex/Resources/plex-icon-256.png “${pkgdir}”/usr/share/pixmaps/plexhometheater.png

There are two patches you could apply before. They don’t seem to be merged to OpenPHT, yet. Note that the essence of building is what happens in the first paragraph. You will have to make sure the directories exist, I don’t know what FLAGS your distribution uses, whether it also uses glib v 2.0 and whether your python interpreter is also at /usr/bin/python2.

There is a package for steam-os available, that might work if you are using a dpkg based distribution, I don’t know.

I’ll try to push this to AUR at one point I think. Arch Linux dropped PHT support (so it’s up to people like me to support OpenPHT now I guess).