iqaudio / tools

Sample CLI tools for IQaudio products
http://www.iqaudio.com
35 stars 11 forks source link

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

Open andig opened 9 years ago

andig commented 9 years ago

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

iqaudio commented 9 years ago

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.

clivem commented 9 years ago

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.

iqaudio commented 9 years ago

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

Sent from my iPhone

On 9 Sep 2015, at 13:13, clivem notifications@github.com 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.

andig commented 9 years ago

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.
clivem commented 9 years ago

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

andig commented 9 years ago

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