Skip to main content

Building/installing libcec 2 on Raspberry PI

· One min read

Tested on Raspbian wheezy

On your linux computer

From https://github.com/Pulse-Eight/libcec/tags download libcec-2.0.5-repack. Apply this patch to configure.ac: https://github.com/vulpesvelox/libcec/commit/3671569235896a7ed448384ea6777a981fd49be9.

tar xvf libcec-2.0.5-repack.tar.gz && cd libcec-libcec-2.0.5-repack
./project/RPi/build.sh "${PWD}"/project/RPi/build

On the PI

apt-get install rsync

On your linux computer

rsync -avz -e ssh project/RPi/build pi@192.168.1.121:
rsync -avz -e ssh project/RPi/deps/lib/liblockdev.* pi@192.168.1.121:build/lib

On the PI

cp -a build/* /usr/local/
/usr/local/bin/cec-client

Fun time!