Forum

Full Version: terminal/shell can´t find libcec
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

I am currently working on my house automation (FHEM) and would like to integrate my TV (turn the TV on and off)
For this I would like to use Xbian/Kodi and the module libcec, which I can control via ssh.
The command to turn on the TV on is: 'echo' on 0 "| Cec-client -s'
and to turn it off: 'echo' standby 0 "| Cec-client -s'

My problem is when I use cec-client to access ceclib Xbian could not find the module:
Terminal
xbian@RPi2 ~ $ echo "on 0" | cec-client -s
libcec.so.4: cannot open shared object file: No such file or directory
Cannot load libcec.so
xbian@RPi2 ~ $ echo "standby 0" | cec-client -s
libcec.so.4: cannot open shared object file: No such file or directory
Cannot load libcec.so

But libcec is there, if i want to install it i get the message it is already present.
I found the 4 moduls at /usr/lib/arm-linux-gnueabihf:
Terminal
libcec.so.3
libcec.so.3.1.0
libcec.so.4.0
libcec.so.4.0.0

Also the cec-modul works great with my remote control of my TV an xbian/Kodi, so i cant figure out why xbian says it cant find the moduls
libcec4 is still devel Exclamation Seems that cec-client is broken, will have to look into.

Kodi (the versions on our repositories) does not require libcec4, so you can remove them and use libcec3 packages
Workaround:

Terminal

cd /usr/lib/arm-linux-gnueabihf
sudo ln -s libcec.so.4.0 libcec.so.4
imagen how fast you response, respect!

I had forgotten to say that i use the develrepo for Kodi 17,
but workaround works Smile

big thanks!
Fixed in sources, new packages has been built and are available on repositories
Reference URL's