I have a retropie setup (Wheezie) running, and a while back installed libcec to get my TV remote to work with the Kodi package Installed via Retropie. ( This works by the way )
I was tying to have a go a python and the cec package to see what I could do with it. However it threw lots of errors and I couldn't import the cec package. So I decided to try the terminal first.
With little succes (see error below).
$ cec-client -t p -l
and
$ cec-client-3.0.1 -t p -l
return:
== using device type 'playback device'
libCEC version: 3.0.1, git revision: libcec-2.1.4+223-2f62595, compiled on Fri Jan 1 19:50:56 UTC 2016 by pi@retropie on Linux 4.1.13-v7+ (armv7l), features: P8_USB, DRM, P8_detect, randr
Found devices: NONE
notice how RPI is missing from the list
Next I tried to remove lib-cec and anything that said "cec" in its name. Doing so I kind of broke Kodi and the cec client was still there.
After reinstalling Kodi again, I'm back to square one. Trying to install libcec from source, trying to also include RPI but again without success, with whatever I tried. The error below kept popping its head.
/usr/bin/ld: cannot find -lvcos
/usr/bin/ld: cannot find -lvchiq_arm
/usr/bin/ld: cannot find -lbcm_host
collect2: error: ld returned 1 exit status
src/libcec/CMakeFiles/cec.dir/build.make:888: recipe for target 'src/libcec/libcec.so.3.1.0' failed
make[2]: *** [src/libcec/libcec.so.3.1.0] Error 1
CMakeFiles/Makefile2:227: recipe for target 'src/libcec/CMakeFiles/cec.dir/all' failed
make[1]: *** [src/libcec/CMakeFiles/cec.dir/all] Error 2
Makefile:113: recipe for target 'all' failed
make: *** [all] Error 2
So after going in full circle I decided to ask here. Needless to say, I'm pretty new to the building from source scene.