Forum
terminal/shell can´t find libcec - Printable Version

+- Forum (http://forum.xbian.org)
+-- Forum: Hardware (/forum-7.html)
+--- Forum: Remotes and CEC support (/forum-26.html)
+--- Thread: terminal/shell can´t find libcec (/thread-3863.html)



terminal/shell can´t find libcec - Harald654 - 25th Nov, 2016 05:02 AM

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


RE: terminal/shell can´t find libcec - Nachteule - 25th Nov, 2016 05:33 AM

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


RE: terminal/shell can´t find libcec - Nachteule - 25th Nov, 2016 05:41 AM

Workaround:

Terminal

cd /usr/lib/arm-linux-gnueabihf
sudo ln -s libcec.so.4.0 libcec.so.4



RE: terminal/shell can´t find libcec - Harald654 - 25th Nov, 2016 06:44 AM

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!


RE: terminal/shell can´t find libcec - Nachteule - 25th Nov, 2016 09:23 AM

Fixed in sources, new packages has been built and are available on repositories