Blog Archives

CEC 3.0.0 on the Raspberry Pi

UPDATE 20180123 This article is now years out of date.  you should simply be able to install the cec-utils package and all should be well. sudo apt-get update && sudo apt-get dist-upgrade sudo apt-get install cec-utils Background In a previous

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