jons/blyncd

Can't make in arch

Closed this issue · 1 comments

Error output

gcc -Wall -g blyncd.c -lhidapi-libusb -lpthread
blyncd.c:16:10: fatal error: hidapi.h: No such file or directory
#include <hidapi.h>
^~~~~~~~~~
compilation terminated.
make: *** [Makefile:2: all] Error 1

Can't find relevant file/package for hidapi.h

i have the latest hidapi package intalled from arch repos. 8.0-rc1

Found out hidapi in arch is placed in /usr/include/hidapi/

Updated command in make.

Before
gcc -Wall -g blyncd.c -lhidapi-libusb -lpthread

After.
gcc -Wall -I/usr/include/hidapi -g blyncd.c -lhidapi-libusb -lpthread

Closing