forked from Pulse-Eight/libcec
-
Notifications
You must be signed in to change notification settings - Fork 1
/
README
151 lines (113 loc) · 5.66 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
This library provides support for the Pulse-Eight USB-CEC adapter.
You can find a list of frequently asked questions on the following page:
http://libcec.pulse-eight.com/faq
===============================================================================
=== Linux & BSD ===
===============================================================================
libCEC needs the following dependencies in order to work correctly:
* udev v151 or later
* cdc-acm support compiled into the kernel or available as module
* liblockdev 1.0 or later
To compile libCEC on Linux, you'll need the following dependencies:
* autoconf 2.13 or later
* automake 1.11 or later
* libtool
* gcc 4.2 or later
* liblockdev 1.0 development headers
The following dependencies are recommended. Without them, the adapter can not
be auto-detected.
* pkg-config
* udev development headers v151 or later
To compile, execute the following commands:
# ./bootstrap
# ./configure
# make
# sudo make install
===============================================================================
=== OS-X ===
===============================================================================
To compile libCEC on OS-X, you'll need the following dependencies:
* autoconf 2.13 or later
* automake 1.11 or later
* pkg-config
* xcode 3.2.6 or later
To compile, execute the following command:
# ./bootstrap
# ./configure
# make
# sudo make install
# Note: You may need to copy pkg.m4 to your m4 sources directory
===============================================================================
=== Windows ===
===============================================================================
To compile libCEC on Windows, you'll need Visual Studio 2012 and Visual Studio
or Visual C++ 2008. The latter is needed to build LibCecSharp for .Net
Framework 2.0.
The adapter detection code needs the Windows DDK (Driver Development Kit).
To create an installer, you'll need Nullsoft's NSIS.
To compile libCEC, follow these instructions:
* open /project/libcec.sln with Visual Studio 2012.
* build the project.
To build an installer on Windows:
* download and install NSIS.
* go to /project and execute create-installer.bat to create the installer.
* the installer is stored as /build/libCEC-installer.exe
===============================================================================
=== Raspberry Pi ===
===============================================================================
We've included a script that builds libCEC with support for the Raspberry Pi
in /project/RPi/build.sh. This script pulls in the latest toolchain and
firmware, builds the necessary dependencies, and finally builds libCEC. The
result will be a softfp build.
To build libCEc on your development machine, follow these instructions:
* run '/project/RPi/build.sh /desired/destination/path/for/binaries'
* run 'make install'
To build libCEC on the Pi itself, just follow the instructions for Linux.
The configure script automatically checks whether the required headers and
libraries can be found.
To specify the path of the Raspberry Pi's development headers, use the
following option for 'configure':
--with-rpi-include-path="/path/to/opt/vc/include"
To specify the path of the Raspberry Pi's libraries, use the following option
for 'configure':
--with-rpi-lib-path="/path/to/libbcm_host.so"
===============================================================================
=== CuBox / TDA995x ===
===============================================================================
Solid-Run's CuBox uses a combined HDMI tranceiver / CEC controller by NXP. The
device driver for it is based on an SDK by the chip vendor and is compiled into
the Linux kernel. The following options for 'configure' have been introduced:
To enable support for the CuBox / TDA995x:
--enable-tda995x
To specify the path to the SDK part of the kernel driver:
--with-tda995x-toolkit-path='path/to/linux/drivers/video/dovefb/nxp_hdmi'
If the toolkit path is not specified, it is assumed that a directory named
'nxp_hdmi' (or a link to it) exists in the top level of the source tree.
===============================================================================
=== Debugging / Testing ===
===============================================================================
To compile libCEC with extensive debugging output, pass the following argument
to configure on Linux/OS-X/BSD:
--enable-debug
We provide a test client, named cec-client, to debug the device.
To check whether the device can be detected, execute the following command:
* cec-client -l
"cec-client -h" shows a list of commands and options that are available.
===============================================================================
=== Developers ===
===============================================================================
We provide a C, C++ and .NET CLR interface to the adapter.
C++ developers:
* the API can be found in /include/cec.h
* an example implementation can be found in /src/testclient/main.cpp
C developers:
* the API can be found in /include/cecc.h
.NET developers:
* add a reference to LibCecSharp.dll
* an example can be found in \src\CecSharpTester\CecSharpClient.cs
===============================================================================
=== Developers Agreement ===
===============================================================================
If you wish to contribute to this project, you must first sign our contributors
agreement. Please see http://www.pulse-eight.net/contributors for more
information.