How to add the HIDAPI library to an existing Mac project

I am working on a HID device driver for user space and a lot of search engines that recommend using the HIDAPI library from signal11. I followed all the readme instructions and ran the make command in the Mac directory, but I do not see the hidapi.h file, I would assume that I would need it. Is there any other way I have to bring the library to the xcode project?

Thank!

+3
source share
1 answer

Try simply converting the hid.c file to a .cpp file, in which case you will not need a library because you will have the full source code. It worked for me.

hidapi make , , , , hid.o . . , (create-lab-commons), make , g++ hidapi.dylib . . . , .

0

All Articles