# Linux Build

**URL:** <https://forums.plex.tv/t/linux-build/125193>\
**Category:** Apps & Creations\
**Created:** [November 28, 2015, 6:12am UTC](https://forums.plex.tv/t/linux-build/125193 "2015-11-28T06:12:48Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![syco54645](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/syco54645/32/92942_2.png) [@syco54645](https://forums.plex.tv/u/syco54645)\
**Post date:** [November 28, 2015, 6:12am UTC](https://forums.plex.tv/t/linux-build/125193/1 "2015-11-28T06:12:48Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Yeah\_Dawg](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/yeah_dawg/32/13999_2.png) [@Yeah\_Dawg](https://forums.plex.tv/u/Yeah_Dawg)\
**Post date:** [November 30, 2015, 8:20pm UTC](https://forums.plex.tv/t/linux-build/125193/2 "2015-11-30T20:20:52Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![moruk](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/moruk/32/91238_2.png) [@moruk](https://forums.plex.tv/u/moruk)\
**Post date:** [December 1, 2015, 3:32pm UTC](https://forums.plex.tv/t/linux-build/125193/3 "2015-12-01T15:32:12Z")

</div>

Kind of rough these days on Linux with Plex ☹ 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:

> <https://github.com/plexinc/plex-home-theater-public/blob/pht-frodo/README-BUILD-PLEX.md>

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.

---

<div class="post-metadata">

**Author:** ![syco54645](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/syco54645/32/92942_2.png) [@syco54645](https://forums.plex.tv/u/syco54645)\
**Post date:** [December 1, 2015, 6:45pm UTC](https://forums.plex.tv/t/linux-build/125193/4 "2015-12-01T18:45:32Z")

</div>

> @moruk said:  
> Kind of rough these days on Linux with Plex ☹ 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](https://github.com/plexinc/plex-home-theater-public/blob/pht-frodo/README-BUILD-PLEX.md)
> 
> 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.

---

<div class="post-metadata">

**Author:** ![Massaguana](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/massaguana/32/1151_2.png) [@Massaguana](https://forums.plex.tv/u/Massaguana)\
**Post date:** [December 5, 2015, 11:05am UTC](https://forums.plex.tv/t/linux-build/125193/5 "2015-12-05T11:05:01Z")

</div>

+1 for an build for my ChromeBox runs OpenELEC

---

<div class="post-metadata">

**Author:** ![moruk](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/moruk/32/91238_2.png) [@moruk](https://forums.plex.tv/u/moruk)\
**Post date:** [December 5, 2015, 11:44am UTC](https://forums.plex.tv/t/linux-build/125193/6 "2015-12-05T11:44:02Z")

</div>

> @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](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](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.

---

<div class="post-metadata">

**Author:** ![ProfessorKaos64](https://avatars.discourse-cdn.com/v4/letter/p/e274bd/32.png) [@ProfessorKaos64](https://forums.plex.tv/u/ProfessorKaos64)\
**Post date:** [December 7, 2015, 7:21pm UTC](https://forums.plex.tv/t/linux-build/125193/7 "2015-12-07T19:21:54Z")

</div>

I’m going to take a look at the above links and also posts like [this](https://forums.plex.tv/discussion/comment/505693/#Comment_505693) 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](https://forums.plex.tv/discussion/197519/debian-packaging-for-openpht#latest).

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

---

<div class="post-metadata">

**Author:** ![ProfessorKaos64](https://avatars.discourse-cdn.com/v4/letter/p/e274bd/32.png) [@ProfessorKaos64](https://forums.plex.tv/u/ProfessorKaos64)\
**Post date:** [December 8, 2015, 2:09am UTC](https://forums.plex.tv/t/linux-build/125193/8 "2015-12-08T02:09:18Z")

</div>

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](https://forums.plex.tv/discussion/197519/debian-packaging-for-openpht#latest)

Reddit thread for tracking:

> **[r/SteamOS - \[early testing\] OpenPHT (continued community driven fork of Plex...](https://www.reddit.com/r/SteamOS/comments/3vvg2n/early_testing_openpht_continued_community_driven/)**
>
> 5 votes and 1 comment so far on Reddit

---

<div class="post-metadata">

**Author:** ![moruk](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/moruk/32/91238_2.png) [@moruk](https://forums.plex.tv/u/moruk)\
**Post date:** [December 30, 2015, 5:01pm UTC](https://forums.plex.tv/t/linux-build/125193/9 "2015-12-30T17:01:15Z")

</div>

As I said, you just follow the steps from [https://projects.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/plex-home-theater](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).

---

<div class="post-metadata">

**Author:** ![eduncan911](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/eduncan911/32/15016_2.png) [@eduncan911](https://forums.plex.tv/u/eduncan911)\
**Post date:** [January 11, 2016, 7:44pm UTC](https://forums.plex.tv/t/linux-build/125193/10 "2016-01-11T19:44:29Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![jpenguin](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/jpenguin/32/222615_2.png) [@jpenguin](https://forums.plex.tv/u/jpenguin)\
**Post date:** [January 12, 2016, 5:16am UTC](https://forums.plex.tv/t/linux-build/125193/11 "2016-01-12T05:16:33Z")

</div>

[https://aur.archlinux.org/packages/openpht/](https://aur.archlinux.org/packages/openpht/)

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

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [January 8, 2020, 7:08pm UTC](https://forums.plex.tv/t/linux-build/125193/12 "2020-01-08T19:08:59Z")

</div>

Closed on January 8, 2020, 7:08pm UTC


