You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@ckbonu, hello. I have some historical reasons do not write whole library in Go: read README.md and you will find the answer.
Please, read #20 how to correctly perform "cross compilation". Honestly I don't know how cross complilation works on macOS (but I know how it works on Linux), but I guess you have a mistake in your command line (somehow you should have special c-compilter with ARM target architecture to be installed on your macOS).
Finally, download latest version of library, try to compile on macOS again (if you figure out how to get special c-compilter to you macOS), and let me know what happened.
d2r2
changed the title
Build is not working in MAC for raspberry
Build is not working in macOS for raspberry
Dec 21, 2018
d2r2
changed the title
Build is not working in macOS for raspberry
Cross compilation is not working in macOS for raspberry
Dec 21, 2018
env GOOS=linux GOARCH=arm GOARM=5 go build godht.go.
command-line-arguments
./godht.go:24:15: undefined: dht.DHT11
./godht.go:31:1: undefined: dht.ReadDHTxxWithRetry
This is example1
The text was updated successfully, but these errors were encountered: