title: Compiling hidapi with libusb instead of hidraw
body: <p>I am trying to compile <a href="https://github.com/signal11/hidapi" rel="nofollow">hidapi</a> on ubuntu 14.04 for use with <a href="https://github.com/node-hid/node-hid" rel="nofollow">node-hid</a>. Node-hid cannot see any devices for some reason when hidapi uses hidraw as <a href="https://github.com/node-hid/node-hid/issues/23" rel="nofollow">this issue</a> describes. The fourth post also offers a solution:</p>
  
  <blockquote>
    <p>So, with my limited gcc/waf knowledge I managed to get it to build (I changed wscript to use ../hidapi/libusb/hid.c vs using /hidapi/linux/hid.c. I also changed its linkflags to use -lusb1.0 instead of -ludev and I added /usr/include/libusb-1.0 (a hardcoded path as the makefile wants to use pkgconfig to find that path.. I don't know an equivalent).</p>
  </blockquote>
  
  <p>I have managed to change /hidapi/linux/hid.c to ../hidapi/libusb/hid.c in the wscript file and I also found the linkflags and changed them; but, I am not sure how to implement the last part about hardcoding the path. Where would I write this path? Or perhaps, is there a better way to get node-hid working?</p>