Opened 13 years ago
Closed 12 years ago
#11317 closed Bug Report - General (Duplicate)
change to ./configure to detect libcec >=2
Reported by: | Owned by: | stuartm | |
---|---|---|---|
Priority: | minor | Milestone: | 0.25.4 |
Component: | MythTV - User Interface Library | Version: | 0.25 |
Severity: | low | Keywords: | libcec |
Cc: | Ticket locked: | no |
Description
Currently the ./configure script cannot detect a version 2 libcec library
The code below (when included in the ./configure script) will compile against the version 2 library
#include <libcec/cec.h> #include <iostream> #include <cstdio> using namespace std; using namespace CEC; #include <libcec/cecloader.h> #define CEC_CONFIG_VERSION CEC_CLIENT_VERSION_CURRENT;
libcec_configuration g_config; int main(void) {
if (CEC_LIB_VERSION_MAJOR < 1 (CEC_LIB_VERSION_MAJOR == 1 && CEC_LIB_VERSION_MINOR < 5))
return 0;
g_config.Clear(); snprintf(g_config.strDeviceName, 13, "CECTester"); g_config.clientVersion = CEC_CONFIG_VERSION; g_config.bActivateSource = 0;
ICECAdapter *parser = LibCecInitialise(&g_config);
return (long) parser; }
Attachments (1)
Change History (5)
comment:2 by , 13 years ago
CEC_CLIENT_VERSION_CURRENT was added in version 2.0.4, therefore this code will not detect any libcec version before 2.0.4.
Not sure if this is what we want?
by , 13 years ago
Attachment: | cecadapter.cpp added |
---|
rough and ready update to support the latest firmware/libccec - note currently has hard coded logical/physical addresses