OpenPHT 1.6 building error on Ubuntu 14.04

I had similar issues, fixed it in 14.04 with adding these packages:

libavcodec-ffmpeg-dev
libavcodec-ffmpeg-extra56
libavcodec-ffmpeg56
libavdevice-ffmpeg-dev

You may not need all of them, but worked for me.

After building openPHT 1.6, it now works great on Ubuntu, but I’m missing some text in the configuration menu’s. All “new” menu entries are empty lines, not sure how to proceed. I’ll try later to delete the config files/replace them with clean ones.

It would be great if someone would make a nice resume of all this efforts for anyone willing to compile :slight_smile: Are all this issues related to 14.04 only or they apply also to 15.10 or 16.04?

Solved these issues by adding packages:

apt-get install libavcodec-ffmpeg-dev libavfilter-ffmpeg-dev libavdevice-ffmpeg-dev libswresample-ffmpeg-dev

(http://packages.ubuntu.com/search?keywords=ffmpeg)

Now I have a running OpenPHT 1.6 on Ubuntu. However, it seems I’m missing some of the menu entries - I just see blank lines with check boxes next to them. Looks like it’s all “the new ones”

This probably means you have a missing font, have you tried using a different skin or selecting a different font in default skin?

Regards

Hi,
Under 14.04
After adding the “official” ffmpeg 2.8 “Feynman” … (configure; make ; make install)
this include all this libraries
libavutil 54. 31.100
libavcodec 56. 60.100
libavformat 56. 40.101
libavdevice 56. 4.100
libavfilter 5. 40.101
libavresample 2. 1. 0
libswscale 3. 1.101
libswresample 1. 2.101
libpostproc 53. 3.100

cmake (with ffmpeg use internal to off) … work as expected … and Openpht is generated (and works … )

So Now … I have 16.04 and 14.04 version of OpenPHT 1.6
Just need to add libcec to have some remote control (using key mapping)

Thanks to all for your help …
I am not able to build a “package” for Ubuntu … (but I will create others packages more in
in my sphere of expertise)

Philippe.
NB I always search if exist a way to use the internal FFMPEG to be sure to have the “original” OpenPHT in case of problems …

Here is a detailed guide of my steps to build OpenPHT 1.6 under Ubuntu 14.04 LTS. It is using exactly the same ffmpeg 2.8.7 version bundled in OpenPHT 1.6 and the same configure command with the non-existent options removed. The Kodi specific patches for ffmpeg are applied too.

Everything works perfectly on my Intel Nuc.

Build OpenPHT 1.6 from source on Ubuntu 14.04 (Intel NUC)

Backup the old version /opt/openpht and the configuration ~/.plexht

sudo apt-add-repository -s ppa:team-xbmc/ppa
sudo apt-get build-dep kodi
sudo apt-get install libsdl-image1.2-dev libflac+±dev libshairport-dev

cd ~
git clone https://github.com/RasPlex/OpenPHT.git openpht-source

cd ~
mkdir ~/ffmpeg-sources
cd ~/ffmpeg-sources
wget http://ffmpeg.org/releases/ffmpeg-2.8.7.tar.bz2
tar xjvf ffmpeg-2.8.7.tar.bz2
cd ffmpeg-2.8.7
cp -r ~/openpht-source/lib/ffmpeg/patches patches

./configure --prefix="/usr/local" --disable-altivec --disable-amd3dnow --disable-avisynth --disable-crystalhd --disable-debug --disable-decoder=mpeg_xvmc --disable-devices --disable-doc --disable-dxva2 --disable-encoders --disable-extra-warnings --disable-ffmpeg --disable-ffplay --disable-ffprobe --disable-ffserver --disable-frei0r --disable-gray --disable-hardcoded-tables --disable-indevs --disable-libdc1394 --disable-libfaac --disable-libfreetype --disable-libgsm --disable-libmp3lame --disable-libnut --disable-libopencore-amrnb --disable-libopencore-amrwb --disable-libopencv --disable-libopenjpeg --disable-librtmp --disable-libschroedinger --disable-libspeex --disable-libtheora --disable-libvo-aacenc --disable-libvo-amrwbenc --disable-libvorbis --disable-libvpx --disable-libx264 --disable-libxavs --disable-libxvid --disable-memalign-hack --disable-mmi --disable-muxers --disable-nonfree --disable-outdevs --disable-small --disable-static --disable-symver --disable-vda --disable-version3 --disable-w32threads --disable-x11grab --enable-asm --enable-avcodec --enable-avdevice --enable-avfilter --enable-avformat --enable-bsfs --enable-bzlib --enable-dct --enable-demuxers --enable-fft --enable-filters --enable-gpl --enable-hwaccels --enable-libvorbis --enable-logging --enable-mdct --enable-muxer=adts --enable-muxer=ogg --enable-muxer=spdif --enable-network --enable-optimizations --enable-parsers --enable-pic --enable-postproc --enable-protocol=http --enable-pthreads --enable-rdft --enable-runtime-cpudetect --enable-shared --enable-stripping --enable-swscale --enable-swscale-alpha --enable-vaapi --enable-vdpau --enable-yasm --enable-zlib --host-libs=-lm

make -j 4

make check
sudo make install
make clean

cat /etc/ld.so.conf
include /etc/ld.so.conf.d/*.conf
/usr/local/lib

sudo ldconfig

cd ~
mkdir ~/openpht-build
cd ~/openpht-build

cmake -DCMAKE_BUILD_TYPE=Debug -DCOMPRESS_TEXTURES=on -DUSE_INTERNAL_FFMPEG=off -DENABLE_AUTOUPDATE=off -DCMAKE_INSTALL_PREFIX=/opt/openpht “~/openpht-source”

make
sudo make install
make clean

To uninstall the package run: sudo rm -r /opt/openpht

Hi,

Thanks … I forget the patch … for my first tests …

Seems some other lib are require (not for compile ffmpeg) ??? : not sure but :
libmodplug … for ex. … I will have (to get free time) to check my log …

Philippe.

@vdimitrov

If you don’t mind I’ll add a wiki on Github for your build instructions, may help others.

Regards

@NedtheNerd said:
@vdimitrov

If you don’t mind I’ll add a wiki on Github for your build instructions, may help others.

Regards

I don’t mind at all. I hope it will help others :slight_smile:

@vdimitrov said:
I don’t mind at all. I hope it will help others :slight_smile:

Done, can be found here Building OpenPHT from source on Ubuntu 14.04 · RasPlex/OpenPHT Wiki · GitHub.

If you need any changes just PM me with the changes, many thanks.

Regards

Hi,

Just to add my own “2 cents” …
Due to the fact I want to keep ffmpeg unchanged i have added to your (vdimitrov) methodology :

  1. change in ffmpeg .configure :
    –prefix="/usr/local" by --prefix="/my/own/path"

  2. don’t add in ld.so.conf

  3. add 2 arguments in the cmake
    -DCMAKE_INCLUDE_PATH=/my/own/path/include
    -DCMAKE_LIBRARY_PATH=/my/own/path/lib
    … so all is generated as well

4 to run I have to add the private library :
LD_LIBRARY_PATH=/my/own/path/lib ./plexhometheater

and all run as well (but with a private patched ffmpeg libraries) without changing other delivery … (ex. ppa for ffmpeg 3)

Philippe.

Hi,

Just one more things …

This is also need (using private lib and include for ffmpeg) for Ubuntu 16.04

The ffmpeg provide by Ubuntu (for lot of other tools) is 2.8.6 without the patches

So following the same procedure as before you can have the good libraries with patches and don’t change the original delivery …

Philippe.

Hi,

After generation and test :

On Ubuntu 14.04 I have some tearing in the menu …
Also I get an error because : libexif-x86_64-linux.so is missing …
root@14-04-64VM:l/opt/openpht/bin# ll system/ total 1920 drwxr-xr-x 2 root root 4096 juin 10 17:21 ./ drwxr-xr-x 3 root root 4096 juin 10 17:21 ../ -rw-r--r-- 1 root root 1737445 juin 10 16:55 ImageLib-x86_64-linux.so -rw-r--r-- 1 root root 204314 juin 10 16:55 libcpluff-x86_64-linux.so -rw-r--r-- 1 root root 11055 juin 10 17:12 libsse4-x86_64-linux.so root@14-04-64VM:/opt/openpht/bin#

so corresponding error :
16:22:53 T:140497496827904 ERROR: Unable to load /opt/openpht/bin/system/libexif-x86_64-linux.so, reason: //opt/openpht/bin/system/libexif-x86_64-linux.so: No such file or directory

Is it common to all delivery or specific to Linux (Ubuntu) portage ???
can we use the libexif provide by Kodi 16 for ex. ??

Philippe.

father_mande:
I don’t have any menu tearing. Have you tried changing the VSync option in the Preferences?

I don’t have the libexif library on my Ubuntu 14.04 system and I don’t have the error you have received. I assume it is in your plexhometheater.log. Have you tried ldd against the plexhometheater binary?

Hi,

thanks for reply …

  1. tearing exist even Vsync is disable or enable only during playback
    … I had this problem with 1.5.2 and Vsync change solve it … not now
    I use a fresh .plexht or using a 1.5.2 .plexht (update of OpnePHT)

… Things I will have to do :
… verify Intel Graphics Libraries (because I use a Celeron J1900 based Ubuntu 14.04 but IGP driver is from vivid (but provide for Ubuntu 14.04) … BUT VAAPI is called and work as well. I use a Vmware environment for compilation and first tests (better to quickly going back) … then transfer to the system where the Hdmi monitor (sound) is connected
… check with another screen to be sure it’s not linked to the screen …

  1. during my first tests … I will try to run a slideshow (photos)
    … some small tearing also appear in the edge of each image during transition …
    … so I had a look to the plexhometheater.log and discover the warning

YES I have check with ldd that all the requested libraries (and version compare to my dev. system) are present
… this lib (part of Kodi/xbmc) are not linked with plexhometheater

Thanks for your help …
I search to identify if problems is “local” to my own environment, due to the Linux portage … or generic … before creating separate post or issue …
Philippe.

@NedtheNerd said:
This probably means you have a missing font, have you tried using a different skin or selecting a different font in default skin?

Regards

It’s only happening in the preferences - some lines are there, some aren’t.

PS. I didn’t clear out old preferences from 1.5, that might be the issue.

Hi,

Thanks …
1 yes I have run ldd and nothing is missing …
libexif-x86_64-linux.so … comes with kodi (or xbmc) part
… as you can imagine this error occurs during photo slideshow …one error for each photo …

2 For tearing :
A) yes I have try (as requested for 1.5.2) to put Vsync disabled or enable only for playback
… in 1.5.2 this (vsync disable ) suppress the tearing …
… I have to do another test to be sure it’s not linked to my screen … (Hdmi monitor with sound) use for tests and development …
B) I have to check the library system … for X … my system is a Celeron J1900 and need for Ubuntu 14.04 a vivid version of Intel Graphics processor … so perhaps a version mismatch between some libraries …
C) tearing is only in the menu (for the limited test I have done … ) no problem during movies and music
… some tearing seems to be visible with slideshow BUT only on the edge during transition … it’s why I have look to plexhometheater.log … and see the warning on exif lib missing …

I will check all (again) because I had generated different version of OpenPHT up to obtain the complete version (with all patches need to ffmpeg …

Globally … I have good result with this version … so I don’t want to “open” separate post or issue if it’s specific to the Linux portage …

Thanks again for your help, alone it’s easy to jump or forget somethings … 8-|

Philippe.

Hi,

F.Y.I.
under Ubuntu 14.04 Intel IGP
I have redo a full install to have exactly the same libraries (when requested) … except new ffmpeg
for OpenPHT 1.5.2
for OpenPHT 1.6
On my screen :
with Vsync enable or selected to be driver dependent :
1.5.2 generate tearing (like pressing repetitively keys)
… tearing in settings menu (frequent) and on menu (search, videos, etc.) BUT never during playback
1.6 generate also tearing (eventually after some delay)… same tearing rules as 1.5.2
with Vsync Disable or “activated during playback”
1.5.2 DON’T generate any tearing in any case, menu, settings, etc.
1.6 keep exactly as before : tearing … like if Vsync parameters is not use or apply …
… verification in guisettings.xml … Vsync is at 0 (so normal value for “disable” … “0”

Philippe.

FWIW, I maintain a set of debian files for building on Debian Jessie / SteamOS here. I’ll have to review all of this a bit more to see if I can switch over to using the rebuilt FFMPEG packages from Ubuntu.

“Also note that the system bundled ffmpeg do not have some kodi specific patches and a plex.direct specific patch. Using ffmpeg avio as network transport will not work correctly.” - kwiboo

Though, because of this, unless it was absolutely necessary, having to manage extra patches for ffmpeg is not always ideal. Maybe I’ll make a “openpht-unstable” package to always have as a backup that uses internal ffmpeg.