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

undefined: I2C_SLAVE #11

Open
heatxsink opened this issue Jul 4, 2020 · 5 comments
Open

undefined: I2C_SLAVE #11

heatxsink opened this issue Jul 4, 2020 · 5 comments

Comments

@heatxsink
Copy link

Trying to go get this and ... no dice.

go get -u github.com/d2r2/go-i2c
# github.com/d2r2/go-i2c
../../../../pkg/mod/github.com/d2r2/go-i2c@v0.0.0-20191123181816-73a8a799d6bc/i2c.go:36:26: undefined: I2C_SLAVE
@d2r2
Copy link
Owner

d2r2 commented Jul 5, 2020

Hi @heatxsink. Could you specify what OS you employ? Be aware, that this library works only with Linux systems. No Windows, no FreeBSD...

@lukibahr
Copy link

lukibahr commented Dec 6, 2020

got the same error, running on macOS (darwin)

@d2r2
Copy link
Owner

d2r2 commented Feb 13, 2021

@lukibahr , I'm sorry, macOS (FreeBSD, Windows as well) is not supported. And if you try to compile this code directly on macOS, I assume this is mistake and you should use cross compilation approach, because you don't have intention to run this code on macOS, right?

@lukibahr
Copy link

okay, thank you for your hint. Cross compiling the code for UNIX will be enough for me.

@d2r2
Copy link
Owner

d2r2 commented Feb 17, 2021

@lukibahr, I will recommend additionally take a look at these comments, where, as I remember we have discussed same aspect: d2r2/go-dht#11 (comment)

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

No branches or pull requests

3 participants