Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trouble installing Digispark on Mac OS #288

Closed
jish opened this issue Jun 14, 2016 · 4 comments
Closed

Trouble installing Digispark on Mac OS #288

jish opened this issue Jun 14, 2016 · 4 comments
Labels

Comments

@jish
Copy link

jish commented Jun 14, 2016

I'm following the instructions on this page https://gobot.io/documentation/platforms/digispark/ but I am having issues installing the Digispark platform:

$ brew install libusb
Warning: libusb-1.0.20 already installed
$ brew install libusb-compat
Warning: libusb-compat-0.1.5 already installed
$ go get -d -u github.com/hybridgroup/gobot/...

And then

$ go install github.com/hybridgroup/gobot/platforms/digispark
# github.com/hybridgroup/gobot/platforms/digispark
In file included from code/go/src/github.com/hybridgroup/gobot/platforms/digispark/littleWire.go:4:
./littleWire.h:34:13: fatal error: 'usb.h' file not found
   #include <usb.h>       // this is libusb, see http://libusb.sourceforge.net/
            ^
1 error generated.
@deadprogram
Copy link
Member

Hi, @jish what version of golang are you using?

@jish
Copy link
Author

jish commented Jul 2, 2016

It looks like I'm using version 1.6.2:

$ go version
go version go1.6.2 darwin/amd64

@deadprogram deadprogram added the bug label Nov 4, 2016
@deadprogram
Copy link
Member

Hi, @jish I was able to reproduce your problem on OSX, but have not come up with a solution yet. Something to do with the paths to the includes, and linker when using CGO on OSX that is a little bit out of the ordinary.

I'm currently playing around with ideas in the https://github.com/hybridgroup/gobot/tree/bugfix/digispark-osx

@deadprogram
Copy link
Member

I've just pushed a fix for this to the dev branch, I will mark as closed once it is released.

Thanks, everyone!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants