RasPlex / OpenPHT

OpenPHT is a community driven fork of Plex Home Theater
Other
597 stars 109 forks source link

libcec ubuntu #287

Closed fu2re closed 5 years ago

fu2re commented 6 years ago

ubuntu 17.10 openpht 1.8.0.0 libcec 3.10 from sources/deb

has a problem with libcec. It does not work, but it works fine at windows (now I am trying to install ubuntu at the same machine - so hardware is 100% ok) periphery section is disabled in the input settings and pop-up notification about cec device is not being showed at startup.

build was done with the following options: cmake -DCMAKE_BUILD_TYPE=Debug -DCOMPRESS_TEXTURES=on -DENABLE_AUTOUPDATE=off -DCMAKE_INSTALL_PREFIX=/opt/openpht "~/openpht-src"

device is ok:

sudo cec-client -l
device:              1
com port:            /dev/ttyACM0
vendor id:           2548
product id:          1002
firmware version:    4
firmware build date: Thu Dec  6 11:15:20 2012 +0000
type:                Pulse-Eight USB-CEC Adapter
fu2re commented 6 years ago

Get libcec 3.1.0 here: https://github.com/Pulse-Eight/libcec/releases Built it using this manual: https://github.com/Pulse-Eight/libcec/blob/master/docs/README.linux.md

Then clone openPHT somewhere:

git clone https://github.com/RasPlex/OpenPHT.git ~/Downloads/OpenPHT
mkdir ~/Downloads/OpenPHT/build
cd ~/Downloads/OpenPHT/build
cmake -DCMAKE_BUILD_TYPE=Debug -DCOMPRESS_TEXTURES=on -DENABLE_AUTOUPDATE=off -DCMAKE_INSTALL_PREFIX=/opt/openpht -DENABLE_CEC=on .. 
make
sudo make install
make clean
cd /opt/openpht/bin
./openpht

Checked the following lines in the output before make

-- Checking for module 'libcec>=2.0'
--   Found libcec, version 3.1.0
-- Found CEC: /usr/local/lib/libcec.so

And still nothing

fu2re commented 5 years ago

Solution: ln -s /usr/local/lib/libcec.so.3.1.0 /opt/openpht/bin/libcec.so.3.1.0