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
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
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
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.
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
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
To compile in support for Exynos devices, you have to pass the argument -DHAVE_EXYNOS_API=1 to cmake:
e -DHAVE_EXYNOS_API=1 ..
To compile in support for TDA995x devices, you have to pass the argument -DHAVE_TDA995X_API=1 to cmake:
e -DHAVE_TDA995X_API=1 ..
Use the following commands to create a debian package:
ce /etc/lsb-release
"s/#DIST#/${DISTRIB_CODENAME}/g" debian/changelog.in > debian/changelog
-buildpackage
To compile libCEC on OS X, you'll need the following dependencies:
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
To compile libCEC on Windows, you'll need the following dependencies:
When compiling LibCecSharp, you'll need the following versions too:
To compile libCEC, follow these instructions:
support\build.cmd
to build libCEC and cec-clientproject\libcec.sln
with Visual Studio 2013.To develop for libCEC or cec-client in Visual Studio:
support\visual-studio.cmd
To build an installer on Windows:
project
and execute create-installer.bat
to create the installer.build\libCEC-installer.exe
We provide a C, C++, Python and .NET CLR interface to the adapter.
include/cec.h
src/cec-client/cec-client.cpp
include/cecc.h
src/cecc-client/cecc-client.cpp
LibCecSharp.dll
src\CecSharpTester\CecSharpClient.cs
src/pyCecClient
If you wish to contribute to this project, you must first sign our contributors agreement. Please see the contributors agreement for more information.