Blog Archives

CEC 3.0.0 on the Raspberry Pi

In a previous blog I gave some instructions on how to compile up libcec on the RPi. Those no longer work as of CEC 3.0.0. In this post I’ll give you the new instructions that work as at 11 June

Tagged with: , , ,
Posted in Uncategorized

A simple libCEC example for the Raspberry Pi

After getting the libcec test client (cec-client) to run my thoughts turned to incorporating CEC control into my own code.  The source code for cec-client is 1145 lines long, according to sloccount, which takes a bit of time to get your head around.

Tagged with: , , ,
Posted in Uncategorized

When (as in temporally) does the vtable get set up?

TL;DR At least for g++, as part of each constructor call. As a derived class object is instantiated the vtable pointer will be updated at each constructor called. The Zero class One of the common jobs you have to do

Tagged with: ,
Posted in Uncategorized

Why doesn’t debugger stop at breakpoint?

TL;DR Remember to give the -g option to the compiler. The problem Tonight I was trying to make a toy example program and wanted to examine the memory of some structures.  I do this all the time at work, but

Tagged with: , ,
Posted in Uncategorized