xbmc/libcec

Name: libcec

Owner: Team Kodi

Description: USB CEC Adapter communication Library http://libcec.pulse-eight.com/

Forked from: Pulse-Eight/libcec

Created: 2016-07-07 18:00:32.0

Updated: 2017-02-19 11:56:27.0

Pushed: 2016-07-08 12:16:10.0

Homepage: null

Size: 5100

Language: C++

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

About

This library provides support for Pulse-Eight's USB-CEC adapter and other CEC capable hardware, like the Raspberry Pi.

You can find a list of frequently asked questions on libCEC's FAQ page

Supported platforms

Linux & BSD
Prerequisites

libCEC needs the following dependencies in order to work correctly:

To compile libCEC on Linux, you'll need the following dependencies:

The following dependencies are recommended. Without them, the adapter can not be (fully) auto-detected.

Compilation

To compile libCEC on a new Debian/Ubuntu installation, follow these instructions:

get update
get install cmake liblockdev1-dev libudev-dev libxrandr-dev python-dev swig

clone https://github.com/Pulse-Eight/platform.git
r platform/build
latform/build
e ..

 make install

clone https://github.com/Pulse-Eight/libcec.git
r libcec/build
ibcec/build
e ..
 -j4
 make install
 ldconfig
Raspberry Pi

If you're compiling for a Raspberry Pi, then the path to the required headers and libraries can be set manually, in case it's not in a standard system directory:

e -DRPI_INCLUDE_DIR=/path/to/vc/include \
  -DRPI_LIB_DIR=/path/to/vc/lib \
  ..

If you're cross compiling, then you can set the correct toolchain like this (for the Raspberry Pi):

e -DCMAKE_TOOLCHAIN_FILE=../cmake/CrossCompile.cmake \
  -DXCOMPILE_BASE_PATH=/path/to/tools/arm-bcm2708/arm-bcm2708hardfp-linux-gnueabi \
  -DXCOMPILE_LIB_PATH=/path/to/firmware/hardfp/opt/vc/lib \
  -DRPI_INCLUDE_DIR=/path/to/firmware/hardfp/opt/vc/include \
  -DRPI_LIB_DIR=/path/to/firmware/hardfp/opt/vc/lib \
  ..

To compile libCEC on a new Raspbian installation, follow these instructions:

 apt-get update
 apt-get install cmake liblockdev1-dev libudev-dev libxrandr-dev python-dev swig

clone https://github.com/Pulse-Eight/platform.git
r platform/build
latform/build
e ..

 make install

clone https://github.com/Pulse-Eight/libcec.git
r libcec/build
ibcec/build
e -DRPI_INCLUDE_DIR=/opt/vc/include -DRPI_LIB_DIR=/opt/vc/lib ..
 -j4
 make install
 ldconfig
Exynos

To compile in support for Exynos devices, you have to pass the argument -DHAVE_EXYNOS_API=1 to cmake:

e -DHAVE_EXYNOS_API=1 ..
TDA995x

To compile in support for TDA995x devices, you have to pass the argument -DHAVE_TDA995X_API=1 to cmake:

e -DHAVE_TDA995X_API=1 ..
Debian

Use the following commands to create a debian package:

ce /etc/lsb-release
"s/#DIST#/${DISTRIB_CODENAME}/g" debian/changelog.in > debian/changelog
-buildpackage
Apple OS X
Prerequisites

To compile libCEC on OS X, you'll need the following dependencies:

Compilation

To compile, execute the following command:

r build
uild
e ..

 make install

Note: You may need to copy pkg.m4 to your m4 sources directory

Microsoft Windows
Prerequisites

To compile libCEC on Windows, you'll need the following dependencies:

When compiling LibCecSharp, you'll need the following versions too:

Compilation

To compile libCEC, follow these instructions:

To develop for libCEC or cec-client in Visual Studio:

To build an installer on Windows:

Developers

We provide a C, C++, Python and .NET CLR interface to the adapter.

C++ developers
C developers
.NET developers
Python developers

Developers Agreement

If you wish to contribute to this project, you must first sign our contributors agreement. Please see the contributors agreement for more information.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.