Plex Home Theater on Gentoo - ebuild or what?

This is for those running PHT on Gentoo:

 

I found an interesting overlay at: https://github.com/dalehamel/PlexOverlay .  However it only compiles PHT out to 98%.  It errors with:

 

/dev/shm/portage/media-tv/plexht-9999/work/plexht-9999/plex/Network/NetworkInterface.cpp:15:17: fatal error: Log.h: No such file or directory

 

 

I'm not necessarily asking for assistance with this overlay.  I'm more interested to identify the best way to get PHT to build and run on Gentoo...

 

I look forward to hear from you Gentooers out there!

 

You need edit that file and replace Log.h With PlexLog.h if I remember correctly from my ubuntu builds.

To files that needs to be edited. This will be fixed before next release of github Tobias has already merged the fix.

So in /dev/shm/portage/media-tv/plexht-9999/work/plexht-9999/plex/Network/NetworkInterface.cpp

Replace

#include "Log.h"

with

#include "PlexLog.h"

and in file /dev/shm/portage/media-tv/plexht-9999/work/plexht-9999/plex/Network/NetworkInterfaceLinux.cpp

same thing

#include "Log.h"

with

#include "PlexLog.h"

You need edit that file and replace Log.h With PlexLog.h if I remember correctly from my ubuntu builds.
To files that needs to be edited. This will be fixed before next release of github Tobias has already merged the fix.

So in /dev/shm/portage/media-tv/plexht-9999/work/plexht-9999/plex/Network/NetworkInterface.cpp
Replace
#include "Log.h"
with
#include "PlexLog.h"

and in file /dev/shm/portage/media-tv/plexht-9999/work/plexht-9999/plex/Network/NetworkInterfaceLinux.cpp
same thing
#include "Log.h"
with
#include "PlexLog.h"


Or take it out per this pull req: https://github.com/plexinc/plex-home-theater-public/pull/5

/Mark

Well things seemed to compile okay using the overlay, and I now get the following error when attempting to run it: 

$ plexhometheater

ERROR: Unable to create application. Exiting

It's not a very descriptive error, and googling didn't seem to yield anything.

I'll keep digging and try to locate fellow gentooers in the forums.

Have you set your env with
XBMC_HOME=/opt/plexhometheater/share/XBMC
Before trying to start pht?

Have you set your env with XBMC_HOME=/opt/plexhometheater/share/XBMC Before trying to start pht?

I certainly did.  I'd get a different error if that was not set properly.  Thanks!

Plex media server is definitely a breeze on Gentoo.  However, the Media Center seems a bit more involved on Gentoo as there doesn't seem to be any working ebuilds, etc.

I guess there aren't many Gentooers running plex media center....

so i haven't had a chance to put together an ebuild but i did get it built.

right now this is a dump of the information.

# lxde-base/lxde-meta and plex-home-theater
>=x11-libs/pango-1.34.1 X
=app-text/ghostscript-gpl-9.05-r1 cups
>=media-libs/libsdl-1.2.15-r4 X opengl
=media-plugins/alsa-plugins-1.0.27 pulseaudio
>=net-dns/avahi-0.6.31-r2 python gtk
>=dev-qt/qtsql-4.8.5 qt3support
>=dev-qt/qtcore-4.8.5 qt3support
=x11-libs/libva-1.0.15 opengl
>=media-libs/sdl-image-1.2.12 gif jpeg png
=x11-libs/cairo-1.12.14-r4 X
>=dev-qt/qtgui-4.8.5-r1 qt3support
=sys-libs/talloc-2.0.8 python
>=dev-libs/libxml2-2.9.1-r1 python
>=sys-libs/zlib-1.2.8-r1 minizip
x11-base/xorg-server udev
net-libs/libmicrohttpd  messages

that very last one was the key. I kept getting stupid misisng stuff in the webserver portion of the xbmc code. it wasn't until i included libmicrohttpd with the messages flag it fixed the compile.

so all i had to do was

cmake .

make

make install

then i ran it in an lxde terminal making sure i set the 

XBMC_HOME=/usr/local/share/XBMC /usr/local/bin/plexhometheater

and it loaded perfectly. i still have to fix my hdmi audio out, and then i'll make a proper ebuild.

so i haven't had a chance to put together an ebuild but i did get it built.

right now this is a dump of the information.

that very last one was the key. I kept getting stupid misisng stuff in the webserver portion of the xbmc code. it wasn't until i included libmicrohttpd with the messages flag it fixed the compile.

so all i had to do was

cmake .

make

make install

then i ran it in an lxde terminal making sure i set the 

XBMC_HOME=/usr/local/share/XBMC /usr/local/bin/plexhometheater

and it loaded perfectly. i still have to fix my hdmi audio out, and then i'll make a proper ebuild.

Did you manage to make an ebuild?

Thanks

i have not gotten around to messing with it any more. i'll try to revisit it, in a few weeks.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.