tools icon indicating copy to clipboard operation
tools copied to clipboard

Why aren't the lirc headers included in the ir control source?

Open andig opened this issue 10 years ago • 7 comments

andig avatar Sep 09 '15 07:09 andig

Changed as of https://github.com/iqaudio/tools/commit/5812ac2e1589be6395127e8bf47cc8638eade61f ?

andig avatar Sep 09 '15 07:09 andig

I'd pulled them out at the last change - if you are finding they are needed then happy for them to be put back - if you need this urgently then please change locally and recompile.

iqaudio avatar Sep 09 '15 08:09 iqaudio

Wasn't needed when I compiled against an older version of lirc, 0.9.0. But when I compiled against 0.9.2a, I had to build with "gcc -include /usr/include/lirc_client.h -o IQ_ir IQ_ir.c -llirc_client -lasound -lwiringPi" to get it built.

clivem avatar Sep 09 '15 12:09 clivem

Okay, I'll add I to my todo list :-)

Sent from my iPhone

On 9 Sep 2015, at 13:13, clivem [email protected] wrote:

Wasn't needed when I compiled against an older version of lirc, 0.9.0. But when I compiled against 0.9.2a, I had to build with "gcc -include /usr/include/lirc_client.h -o IQ_ir IQ_ir.c -llirc_client -lasound -lwiringPi" to get it built.

— Reply to this email directly or view it on GitHub.

iqaudio avatar Sep 09 '15 13:09 iqaudio

Any idea which package I'd need on debian? lirc is installed, yet

root@moode:~/iqaudio# gcc -include /usr/include/lirc_client.h -o IQ_ir IQ_ir.c -llirc_client -lasound -lwiringPi
In file included from <command-line>:0:0:
/usr/include/stdc-predef.h:67:1: fatal error: /usr/include/lirc_client.h: No such file or directory
 #endif
 ^
compilation terminated.

andig avatar Sep 20 '15 12:09 andig

File list of package liblircclient-dev in jessie of architecture armhf

/usr/include/lirc/lirc_client.h /usr/lib/liblirc_client.a /usr/lib/liblirc_client.so /usr/lib/pkgconfig/liblircclient0.pc /usr/share/aclocal/lirc.m4 /usr/share/doc/liblircclient-dev/NEWS.Debian.gz /usr/share/doc/liblircclient-dev/changelog.Debian.gz /usr/share/doc/liblircclient-dev/copyright

clivem avatar Sep 20 '15 14:09 clivem

Much appreciated. I had been looking for lirc-dev.. To compile the`n use

gcc -include /usr/include/lirc/lirc_client.h -o IQ_ir IQ_ir.c -llirc_client -lasound -lwiringPi

andig avatar Sep 20 '15 17:09 andig