OpenPHT on Ubuntu 14.04

Anybody manage to get this to compile? Mine gets stuck on FFMPEG.

Something about copy error right after “Performing download step (DIR copy) for ‘ffmpeg’”, sometimes it gets stuck there for hours on 100% CPU usage.

Hi,

I have compile without big problem (or small ones … that can be able to be solved easily) 14.04 LTS fully up to date.
did you follow the procedure provide in this topic ? :

In all case, people able to help you (not sure I can) … need more precise information or log or terminal log …

Philippe.

[ 7%] Building CXX object lib/libUPnP/CMakeFiles/lib_upnp.dir/Neptune/Source/System/Posix/NptPosixEnvironment.cpp.o
Linking CXX static library liblib_upnp.a
[ 7%] Built target lib_upnp
Scanning dependencies of target lib_dllsymbols
[ 7%] Building C object lib/xbmc-dll-symbols/CMakeFiles/lib_dllsymbols.dir/DllAvFormat.c.o
Linking C static library liblib_dllsymbols.a
[ 7%] Built target lib_dllsymbols
Scanning dependencies of target ffmpeg
[ 7%] Creating directories for ‘ffmpeg’
[ 8%] Performing download step (DIR copy) for ‘ffmpeg’
Error copying directory from “/home/user/Projects/OpenPHT/lib/ffmpeg” to “/home/user/Projects/OpenPHT/lib/ffmpeg/ffmpeg/src/ffmpeg”.
make[2]: *** [lib/ffmpeg/ffmpeg/src/ffmpeg-stamp/ffmpeg-download] Error 1
make[1]: *** [lib/ffmpeg/CMakeFiles/ffmpeg.dir/all] Error 2
make: *** [all] Error 2

it is copying itself into the directories recursively and so it just goes until you force it to stop. Try doing your build in a different directory that worked for me.

There is now a wiki on GitHub, here https://github.com/RasPlex/OpenPHT/wiki/Building-OpenPHT-from-source-on-Ubuntu-14.04

Regards

I followed the guide NedTheNerd linked and it seemed to compile without issues, however it’s not showing up as an application that can be launched? The only step that confused me was where it just randomly has the directory /usr/local/lib in the list of commands. Were we supposed to cd into that directory before running sudo ldconfig?

We’re providing a .deb package for Ubuntu with the next release of OpenPHT in addition to all of the other ‘flavours’, so no need to build it yourself in future.

Regards

Deb packages now available for Ubuntu and Debian, see the 1.6.2 release notes (just released).

Regards.

Hi.
How does it work the autostart? (start script and init file)

@krystyan84 said:
Hi.
How does it work the autostart? (start script and init file)

I’ve Googled for you!

Try autostart - How do I start applications automatically on login? - Ask Ubuntu

Regards

Thx.
Sorry I wrote it wrong. :frowning: The system is Ubuntu 14.04 server. (forums.plex.tv/discussion/comment/505693/#Comment_505693)

Scroll down to the ‘Non GUI approach’!

Regards

Can I use the DEB somehow for standalone OpenPHT? Tried installing it, broke all my self built OpenPHT as well as old Plexhometheater - can’t start those anymore, X starts, few seconds later comes back to bash shell with “Unable to find path to XBMC” error.

Remove & reinstall Plexhometheater (latest version) repaired everything.

So either the DEB uses other directories than I do, or something is wrong with the XBMC_HOME environment var.

I’ll try test some more in the weekend

dpkg -c openpht-official.deb
dpkg -c plexhometheater.deb

check conflicts

rebuild yours avoiding above.

if its environment var use
export XBMC_HOME=/opt/openpht/share/XBMC; /opt/openpht/openpht

Thanks a lot, will give it a go on the next deb release!

I used the .deb file with the “Ubuntu Software” and its working fine!
The only thing i don’t know is when there is a update, maybe i need to do that manual. (i didn’t add a repo)

Tried again to run the version from the DEB on Ubuntu 14.04

I get instant crash, segmentation fault.

dmesg output:

[3780504.651437] AESink[18675]: segfault at 3a50 ip 00007f783df12480 sp 00007f7828c66708 error 4 in libswresample.so.1[7f783df06000+18000]

plexhometheater log

12:42:54 T:140154444826560 NOTICE: Getting hardware information now…
12:42:54 T:140154444826560 NOTICE: Default DVD Player: dvdplayer
12:42:54 T:140154444826560 NOTICE: Default Video Player: dvdplayer
12:42:54 T:140154444826560 NOTICE: Default Audio Player: paplayer
12:42:54 T:140154444826560 NOTICE: Disabled debug logging due to GUI setting. Level 0.
12:42:54 T:140154444826560 NOTICE: Log level changed to 0
12:42:54 T:140154444826560 NOTICE: Loading media sources from special://masterprofile/sources.xml
12:42:54 T:140154056898304 ERROR: CActiveAEResampleFFMPEG::Init - create context failed

FFMPEG , just in case

ffmpeg version N-80901-gfebc862 Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.3)
configuration: --extra-libs=-ldl --prefix=/opt/ffmpeg --mandir=/usr/share/man --enable-avresample --disable-debug --enable-nonfree --enable-gpl --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --disable-decoder=amrnb --disable-decoder=amrwb --enable-libpulse --enable-libfreetype --enable-gnutls --enable-libx264 --enable-libx265 --enable-libfdk-aac --enable-libvorbis --enable-libmp3lame --enable-libopus --enable-libvpx --enable-libspeex --enable-libass --enable-avisynth --enable-libsoxr --enable-libxvid --enable-libvidstab
libavutil 55. 28.100 / 55. 28.100
libavcodec 57. 48.101 / 57. 48.101
libavformat 57. 41.100 / 57. 41.100
libavdevice 57. 0.102 / 57. 0.102
libavfilter 6. 47.100 / 6. 47.100
libavresample 3. 0. 0 / 3. 0. 0
libswscale 4. 1.100 / 4. 1.100
libswresample 2. 1.100 / 2. 1.100
libpostproc 54. 0.100 / 54. 0.100**