Solved Compile Kodi /w libcec 3.1 on updated Ubuntu 14.04
#1
Last weekend I wanted to upgrade my HTPC, so all packages are now up-to-date. I made an effort to compile myself a new Kodi from source which is working fine.
I came accross 1 problem which I still am not able to solve.

Currently libCEC 3.1 is not detected en therefore libcec is disabled in Kodi.

Regarding last time I had this similar problem I still have an updated libplatform:
Code:
sudo apt-get install libplatform-dev
http://forum.kodi.tv/showthread.php?tid=233267

Furthermore the detection during configure:
Code:
configure: == libusb disabled. ==
checking for CEC... no
== libcec disabled. CEC adapter support will not be available. ==
configure: == libcec disabled. CEC adapter support will not be available. ==
checking for BLUETOOTH... yes

Is this a Kodi "work in progress" or a problem on "my" side?
Reply
#2
You have not indicated which version of Kodi you are building from source.

If it is master suggest you build libcec from source before building Kodi, instructions are in README.md at

https://github.com/Pulse-Eight/libcec

Mike
Reply
#3
(2016-05-23, 10:52)MikeB2013 Wrote: You have not indicated which version of Kodi you are building from source.

If it is master suggest you build libcec from source before building Kodi, instructions are in README.md at

https://github.com/Pulse-Eight/libcec

Mike

Apologies, it is indeed: Kodi - branch Master
Just looked into that readme. What I do not understand is, is what is the difference between the apt package 3.1?
Can it be a different location of files? Can it work without custom compile (yes I know how to do it, but apt-get for these packages is kinda nice)
Reply
#4
apt-cache policy libcec-dev

and pastebin the kodi config.log
Reply
#5
This is from:
Code:
sudo apt-cache policy libcec-dev

Code:
htpc01@htpc01:~$ sudo apt-cache policy libcec-dev
libcec-dev:
  Installed: 3.1.0.1~trusty
  Candidate: 3.1.0.1~trusty
  Version table:
*** 3.1.0.1~trusty 0
        500 http://ppa.launchpad.net/pulse-eight/libcec/ubuntu/ trusty/main amd64 Packages
        500 http://ppa.launchpad.net/team-xbmc/xbmc-nightly/ubuntu/ trusty/main amd64 Packages
        100 /var/lib/dpkg/status
     2.1.4-1ubuntu2 0
        500 http://nl.archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages

And here you can find the kodi config.log:
http://paste.ubuntu.com/16631349/

Had a quick look through it myself and found the libp8-platform was not found:
Code:
sudo apt-get install libp8-platform-dev

Now re-running config, curious if this fixes it. -->> Seems to be fixed:
Code:
checking for CEC... yes
checking for libcec soname... libcec.so.3
configure: == libcec enabled. ==
Reply
#6
yup, thats a bug in libcec packaging. Its missing the dependency.
Reply
#7
Thanks for pointing me in the right direction. Never used the config.log.
Learned something today Smile
Reply

Logout Mark Read Team Forum Stats Members Help
Compile Kodi /w libcec 3.1 on updated Ubuntu 14.040