trainman419 / python-cec

Other
170 stars 42 forks source link

Problems on rPI Raspbian 7 #5

Closed Foxi352 closed 9 years ago

Foxi352 commented 10 years ago

Hello, While trying to compile on Raspbian:

root@smarthome:/usr/src/python-cec# python setup.py install running install running build running buildext building 'cec' extension gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -I/usr/include/python2.7 -c cec.cpp -o build/temp.linux-armv6l-2.7/cec.o cec.cpp: In function ‘void initcec()’: cec.cpp:647:37: error: invalid conversion from ‘int ()(void_, CEC::cec_logmessage)’ to ‘CEC::CBCecLogMessageType {aka int ()(void_, const CEC::cec_logmessage&)}’ [-fpermissive] cec.cpp:648:35: error: invalid conversion from ‘int ()(void_, CEC::ceckeypress)’ to ‘CEC::CBCecKeyPressType {aka int ()(void_, const CEC::ceckeypress&)}’ [-fpermissive] cec.cpp:649:34: error: invalid conversion from ‘int ()(void_, CEC::ceccommand)’ to ‘CEC::CBCecCommandType {aka int ()(void_, const CEC::ceccommand&)}’ [-fpermissive] cec.cpp:650:47: error: invalid conversion from ‘int ()(void_, CEC::libcecconfiguration)’ to ‘CEC::CBCecConfigurationChangedType {aka int ()(void_, const CEC::libcecconfiguration&)}’ [-fpermissive] cec.cpp:651:32: error: invalid conversion from ‘int ()(void_, CEC::libcec_alert, CEC::libcecparameter)’ to ‘CEC::CBCecAlertType {aka int ()(void_, CEC::libcec_alert, const CEC::libcec_parameter&)}’ [-fpermissive] cec.cpp:653:19: error: ‘CEC::ICECCallbacks’ has no member named ‘CBCecSourceActivated’ cec.cpp:696:10: error: ‘CEC_ALERT_PERMISSION_ERROR’ was not declared in this scope cec.cpp:698:10: error: ‘CEC_ALERT_PORT_BUSY’ was not declared in this scope cec.cpp:700:10: error: ‘CEC_ALERT_PHYSICAL_ADDRESS_ERROR’ was not declared in this scope cec.cpp:702:10: error: ‘CEC_ALERT_TV_POLL_FAILED’ was not declared in this scope error: command 'gcc' failed with exit status 1

Any error on my side ?

trainman419 commented 10 years ago

At first glance, that looks like a version mismatch. Which versions of python-cec and libcec do you have?

Foxi352 commented 10 years ago

Sorry for delay. I use latest develop branch of python-cec and latest stock libcec available on rpi.

trainman419 commented 10 years ago

The stock version of libcec that ships with raspbian only supports the USB CEC adapter from Pulse-Eight. I suggest you upgrade to my build of libcec for raspbian, per the README.

Foxi352 commented 10 years ago

Oh ok, i thought this was solved meanwhile. My bad. Will try and report back.

On 19. Apr 2014, at 0:40, Austin notifications@github.com wrote:

The stock version of libcec that ships with raspbian only supports the USB CEC adapter from Pulse-Eight. I suggest you upgrade to my build of libcec for raspbian, per the README.

— Reply to this email directly or view it on GitHub.

trainman419 commented 9 years ago

No activity in 8 months. Closing.