hink / go-blink1

Thingm Blink(1) interface library for Go
20 stars 9 forks source link

Unable to go get go-blink1 #5

Closed typingincolor closed 8 years ago

typingincolor commented 8 years ago

If I do go get github.com/hink/go-blink1 on OSX 10.12.1

I get the following error message

# github.com/hink/go-blink1/libusb
hink/go-blink1/libusb/blink1.go:5:11: fatal error: 'usb.h' file not found
        #include <usb.h>
                 ^
1 error generated.
> go version
go version go1.7.3 darwin/amd64

> brew info libusb
libusb: stable 1.0.20 (bottled), HEAD
Library for USB device access
http://libusb.info
/usr/local/Cellar/libusb/1.0.20 (27 files, 492.7K) *
  Poured from bottle on 2016-11-25 at 19:25:18
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/libusb.rb

> brew info libusb-compat
libusb-compat: stable 0.1.5 (bottled)
Library for USB device access
http://www.libusb.org/
/usr/local/Cellar/libusb-compat/0.1.5 (13 files, 93.5K) *
  Poured from bottle on 2016-11-25 at 19:25:18
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/libusb-compat.rb
==> Dependencies
Build: pkg-config ✔
Required: libusb ✔

Has anybody got any ideas?

hink commented 8 years ago

You'll need to install the libusb headers.

If you're on a mac -- install homebrew, the run the following command

brew install libusb libusb-compat