Linux Build

Any chance of getting a linux build of this? Really prefer PHT to the new mess that they are forcing on us. Perhaps this can save me as a Plex user. If not maybe I will spin up a build box and try my hand at it.

I have a home built Ubuntu HTPC running PMS and PHT. This is connected to my main A/V receiver via HDMI and has worked great for a while. I also like to control the PHT using the iOS app. However, not too long ago an issue has occurred where PHT disappears from the ‘Player’ list in the app after a couple of minutes from when the PHT software starts on Ubuntu.

This has been reported many times, but the only answer I’m seeing for PHT users is to convert to OpenPHT since PHT is being phased out. But OpenPHT currently does not have a Linux build, so the answer is leaving out a good portion of the user base.

Having that said, I would also very much welcome a Linux build of OpenPHT. It gets rather annoying having to reboot the HTPC whenever one wants to watch something off of Plex. It also seems to be a good venue for the whole ‘Open’ aspect of the software.

Kind of rough these days on Linux with Plex :frowning: You feel truly abandoned. Hope this will build soon (after all it derives from XBMC 13). Thanks for continuing support, might take years until PMP catches up with PHT.

I guess I can see the problem:

We never had build options available in public I take it?

Edit Seems to build just fine on Linux. Let’s see if it is going to finish.

Edit Builds just fine on Arch Linux. Going to push to AUR later, if I do not forget.

@moruk said:
Kind of rough these days on Linux with Plex :frowning: You feel truly abandoned. Hope this will build soon (after all it derives from XBMC 13). Thanks for continuing support, might take years until PMP catches up with PHT.

I guess I can see the problem:

plex-home-theater-public/README-BUILD-PLEX.md at pht-frodo · plexinc/plex-home-theater-public · GitHub

We never had build options available in public I take it?

Edit Seems to build just fine on Linux. Let’s see if it is going to finish.

Edit Builds just fine on Arch Linux. Going to push to AUR later, if I do not forget.

What instructions did you follow? I generally run Ubuntu nowadays. Still not had any time to look into doing this.

+1 for an build for my ChromeBox runs OpenELEC

@syco54645 said:
What instructions did you follow? I generally run Ubuntu nowadays. Still not had any time to look into doing this.

Here are the instructions https://projects.archlinux.org/svntogit/community.git/tree/trunk?h=packages/plex-home-theater . The gravy is inside https://projects.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/plex-home-theater

I plan to push a PKGBUILD to aur, but it is not currently a priority. I have to message the maintainer of the official PHT first.

I’m going to take a look at the above links and also posts like this tonight. I’ve begun trying to package this for debian, but ran into some lib path errors (which are likely my fault anyway for basing this off the PPA build. My original post about this on these forums is here.

Interesting problem to tackle. Unfortunate I don’t have a beefy build machine to make each attempt go faster :slight_smile:

For SteamOS users on Brewmaster (the only currently support release), please see my separate post here. I was able to get a deb packaged after messing with things for quite a white. The work may not be permanent, as fixes I can make with debian warnings will be addressed as best I can over time. On initial check things launch toe the home setup script, with the rebranded OpenPHT banner.

https://forums.plex.tv/discussion/197519/debian-packaging-for-openpht#latest

Reddit thread for tracking:

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).

I can confirm that these changes work (implemented it manually with the PKGBUILD and installed on arch).

Though, i now see this has no mouse/touchscreen support - which was my goal on my Linux tablet. Doh.

https://aur.archlinux.org/packages/openpht/

Not sure why noone else did this, but for the Arch users