[mythtv-users] Update libcec in ubuntu
Mark Perkins
perkins1724 at hotmail.com
Thu Jan 23 05:20:36 UTC 2014
Date: Sun, 22 Dec 2013 08:18:57 +0000
From: alex at tomlins.org.uk
To: mythtv-users at mythtv.org
Subject: Re: [mythtv-users] Update libcec in ubuntu
On 22/12/13 03:41, Mark Perkins wrote:
Just can't get a different version of libcec to
stick for mythtv.
Have installed libcec by Pulse Eight - https://github.com/Pulse-Eight/libcec
It placed the library files in /usr/local/includes as follows (I
did the chmod 777 trying to get it to work, I think it started
as 744)
Pulse Eight have a PPA with updated Ubuntu packages:
https://launchpad.net/~pulse-eight/+archive/libcec
It has 2.1.4 available for all recent distributions, so instead of
compiling libcec from source into /usr/local, you could just upgrade
the Ubuntu package.
thanks,
Alex
--
Alex Tomlins
Email/Jabber: alex at tomlins.org.uk
There are two kinds of people in the world: those who finish what they started
_______________________________________________
I've not put much time into this but I have still been unable to get it to work correctly using either method. Looking in the config.ep file created at configure time I seem to be getting an error "error: 'LibCecInit' was not declared in this scope". I guess that means that the Pulse Eight version of libcec does not have a required function?
I think the relevant snippet from config.ep is as follows:
check_cxx -I/usr/local/include
BEGIN /tmp/mythtv_conf.cerE6zZL.cpp
1 #include <libcec/cec.h>
2 #include <iostream>
3 using namespace std;
4 using namespace CEC;
5 #include <libcec/cecloader.h>
6 int main(void) {
7 if (CEC_LIB_VERSION_MAJOR < 1 || (CEC_LIB_VERSION_MAJOR == 1 &&
8 CEC_LIB_VERSION_MINOR < 5))
9 return 0;
10 return (long) LibCecInit;
11 }
END /tmp/mythtv_conf.cerE6zZL.cpp
ccache g++ -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -I/usr/local/include -c -o /tmp/mythtv_conf.tRrTzqh8.o /tmp/mythtv_conf.cerE6zZL.cpp
/tmp/mythtv_conf.cerE6zZL.cpp: In function 'int main()':
/tmp/mythtv_conf.cerE6zZL.cpp:10:19: error: 'LibCecInit' was not declared in this scope
return (long) LibCecInit;
^
(Note in the config.ep file the up chevron on the final line is directly below the 'L' in LibCecInit, I guess email formatting is out a bit).
I did a search in cec.h for "LibCecInit" and it was not found but I don't know if that is actually how things work or not. cecloader.h had references to "LibCecInitialise" if that has any relevance (probably not).
Any suggestions appreciated.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mythtv.org/pipermail/mythtv-users/attachments/20140123/fa3e66b9/attachment.html>
More information about the mythtv-users
mailing list